var Lottery_Rules = {
	"kl10dwd1": {
			showname: '复式',
			rulecode: 'kl10dwd1',
			realname: '[定位胆_第一位]',
			maxMultiplePerOrder:-1,
			maxPrize:-1,
			maxRecord:850,
			fixed: 0.015,
			minMode:1850,
			startPrice:4.125,
			calculatePrize:Env.defaultCalculate,
			pageHtml:'<dl class="danqiu" id="kl10dwd1">'
				+ '<dd><h5>第一位</h5>'
				+'<ul class="sz-qiu"><li  id="kl10dwd1_s_01">01</li><li id="kl10dwd1_s_02">02</li><li id="kl10dwd1_s_03">03</li>'
				+'<li id="kl10dwd1_s_04">04</li><li id="kl10dwd1_s_05">05</li><li id="kl10dwd1_s_06">06</li><li id="kl10dwd1_s_07">07</li>'
				+'<li id="kl10dwd1_s_08">08</li><li id="kl10dwd1_s_09">09</li><li id="kl10dwd1_s_10">10</li><li id="kl10dwd1_s_11">11</li>'
				+'<li id="kl10dwd1_s_12">12</li><li id="kl10dwd1_s_13">13</li><li id="kl10dwd1_s_14">14</li><li id="kl10dwd1_s_15">15</li>'
				+'<li id="kl10dwd1_s_16">16</li><li id="kl10dwd1_s_17">17</li><li id="kl10dwd1_s_18">18</li><li id="kl10dwd1_s_19">19</li><li id="kl10dwd1_s_20">20</li></ul>'
				+ '<ul class="gongn"><li datascope="kl10dwd1_s_ful_1-20">全</li><li datascope="kl10dwd1_s_big_1-20">大</li><li datascope="kl10dwd1_s_sma_1-20">小</li>'
				+'<li datascope="kl10dwd1_s_sin_1-20">单</li><li datascope="kl10dwd1_s_dou_1-20">双</li><li datascope="kl10dwd1_s_cle_1-20">清</li></ul></dd></dl>',
			bettips: '从第一位中选一个号码组成一注。',
			betexample: '投注方案：02；开奖号码：02 * * * * * * *',
			bethelp: '从第一位中选择一个1位数号码组成一注，所选号码与开奖号码全部相同，且顺序一致，即为中奖。',
			vali: function() {
				if (!way.get(this.rulecode + ".count.s")) {
					way.set("Lottery.itemcount", "0");
					way.set("Lottery.total", "0");
				} else if (way.get("Lottery.times")) {
					var itemcount = way.get(this.rulecode + ".count.s");
					way.set("Lottery.itemcount", ""+itemcount);
					var total = itemcount * way.get("Lottery.times") * way.get("http://www.yugj881.com/resources/main/lottery/Lottery.yjf") * Env.price;
					if (total)
						way.set("Lottery.total", total.toFixed(4));
					else way.set("Lottery.total", "0");
				} else {
					way.set("Lottery.total", "0");
				}
			},
			clear:function(){
				for (i=1; i <= 20; i++) {
					var j=i;
					if(i<10)
						j="0"+i;
					var item = $("#kl10dwd1_s_" + j);
					if (item.hasClass("cur")) {
						item.trigger('click');
					} 
				}
			}
		},"kl10dwd2": {
			showname: '复式',
			rulecode: 'kl10dwd2',
			realname: '[定位胆_第二位]',
			maxMultiplePerOrder:-1,
			maxPrize:-1,
			maxRecord:850,
			fixed: 0.015,
			minMode:1850,
			startPrice:4.125,
			calculatePrize:Env.defaultCalculate,
			pageHtml:'<dl class="danqiu" id="kl10dwd2">'
				+ '<dd><h5>第二位</h5>'
				+'<ul class="sz-qiu"><li  id="kl10dwd2_s_01">01</li><li id="kl10dwd2_s_02">02</li><li id="kl10dwd2_s_03">03</li>'
				+'<li id="kl10dwd2_s_04">04</li><li id="kl10dwd2_s_05">05</li><li id="kl10dwd2_s_06">06</li><li id="kl10dwd2_s_07">07</li>'
				+'<li id="kl10dwd2_s_08">08</li><li id="kl10dwd2_s_09">09</li><li id="kl10dwd2_s_10">10</li><li id="kl10dwd2_s_11">11</li>'
				+'<li id="kl10dwd2_s_12">12</li><li id="kl10dwd2_s_13">13</li><li id="kl10dwd2_s_14">14</li><li id="kl10dwd2_s_15">15</li>'
				+'<li id="kl10dwd2_s_16">16</li><li id="kl10dwd2_s_17">17</li><li id="kl10dwd2_s_18">18</li><li id="kl10dwd2_s_19">19</li><li id="kl10dwd2_s_20">20</li></ul>'
				+ '<ul class="gongn"><li datascope="kl10dwd2_s_ful_1-20">全</li><li datascope="kl10dwd2_s_big_1-20">大</li><li datascope="kl10dwd2_s_sma_1-20">小</li>'
				+'<li datascope="kl10dwd2_s_sin_1-20">单</li><li datascope="kl10dwd2_s_dou_1-20">双</li><li datascope="kl10dwd2_s_cle_1-20">清</li></ul></dd></dl>',
			bettips: '从第二位中选一个号码组成一注。',
			betexample: '投注方案：02；开奖号码：* 02 * * * * * *',
			bethelp: '从第二位中选择一个1位数号码组成一注，所选号码与开奖号码全部相同，且顺序一致，即为中奖。',
			vali: function() {
				if (!way.get(this.rulecode + ".count.s")) {
					way.set("Lottery.itemcount", "0");
					way.set("Lottery.total", "0");
				} else if (way.get("Lottery.times")) {
					var itemcount = way.get(this.rulecode + ".count.s");
					way.set("Lottery.itemcount", ""+itemcount);
					var total = itemcount * way.get("Lottery.times") * way.get("http://www.yugj881.com/resources/main/lottery/Lottery.yjf") * Env.price;
					if (total)
						way.set("Lottery.total", total.toFixed(4));
					else way.set("Lottery.total", "0");
				} else {
					way.set("Lottery.total", "0");
				}
			},
			clear:function(){
				for (i=1; i <= 20; i++) {
					var j=i;
					if(i<10)
						j="0"+i;
					var item = $("#kl10dwd2_s_" + j);
					if (item.hasClass("cur")) {
						item.trigger('click');
					} 
				}
			}
		},"kl10dwd3": {
			showname: '复式',
			rulecode: 'kl10dwd3',
			realname: '[定位胆_第三位]',
			maxMultiplePerOrder:-1,
			maxPrize:-1,
			maxRecord:850,
			fixed: 0.015,
			minMode:1850,
			startPrice:4.125,
			calculatePrize:Env.defaultCalculate,
			pageHtml:'<dl class="danqiu" id="kl10dwd3">'
				+ '<dd><h5>第三位</h5>'
				+'<ul class="sz-qiu"><li  id="kl10dwd3_s_01">01</li><li id="kl10dwd3_s_02">02</li><li id="kl10dwd3_s_03">03</li>'
				+'<li id="kl10dwd3_s_04">04</li><li id="kl10dwd3_s_05">05</li><li id="kl10dwd3_s_06">06</li><li id="kl10dwd3_s_07">07</li>'
				+'<li id="kl10dwd3_s_08">08</li><li id="kl10dwd3_s_09">09</li><li id="kl10dwd3_s_10">10</li><li id="kl10dwd3_s_11">11</li>'
				+'<li id="kl10dwd3_s_12">12</li><li id="kl10dwd3_s_13">13</li><li id="kl10dwd3_s_14">14</li><li id="kl10dwd3_s_15">15</li>'
				+'<li id="kl10dwd3_s_16">16</li><li id="kl10dwd3_s_17">17</li><li id="kl10dwd3_s_18">18</li><li id="kl10dwd3_s_19">19</li><li id="kl10dwd3_s_20">20</li></ul>'
				+ '<ul class="gongn"><li datascope="kl10dwd3_s_ful_1-20">全</li><li datascope="kl10dwd3_s_big_1-20">大</li><li datascope="kl10dwd3_s_sma_1-20">小</li>'
				+'<li datascope="kl10dwd3_s_sin_1-20">单</li><li datascope="kl10dwd3_s_dou_1-20">双</li><li datascope="kl10dwd3_s_cle_1-20">清</li></ul></dd></dl>',
			bettips: '从第三位中选一个号码组成一注。',
			betexample: '投注方案：02；开奖号码：* * 02 * * * * *',
			bethelp: '从第三位中选择一个1位数号码组成一注，所选号码与开奖号码全部相同，且顺序一致，即为中奖。',
			vali: function() {
				if (!way.get(this.rulecode + ".count.s")) {
					way.set("Lottery.itemcount", "0");
					way.set("Lottery.total", "0");
				} else if (way.get("Lottery.times")) {
					var itemcount = way.get(this.rulecode + ".count.s");
					way.set("Lottery.itemcount", ""+itemcount);
					var total = itemcount * way.get("Lottery.times") * way.get("http://www.yugj881.com/resources/main/lottery/Lottery.yjf") * Env.price;
					if (total)
						way.set("Lottery.total", total.toFixed(4));
					else way.set("Lottery.total", "0");
				} else {
					way.set("Lottery.total", "0");
				}
			},
			clear:function(){
				for (i=1; i <= 20; i++) {
					var j=i;
					if(i<10)
						j="0"+i;
					var item = $("#kl10dwd3_s_" + j);
					if (item.hasClass("cur")) {
						item.trigger('click');
					} 
				}
			}
		},"kl10dwd4": {
			showname: '复式',
			rulecode: 'kl10dwd4',
			realname: '[定位胆_第四位]',
			maxMultiplePerOrder:-1,
			maxPrize:-1,
			maxRecord:850,
			fixed: 0.015,
			minMode:1850,
			startPrice:4.125,
			calculatePrize:Env.defaultCalculate,
			pageHtml:'<dl class="danqiu" id="kl10dwd4">'
				+ '<dd><h5>第四位</h5>'
				+'<ul class="sz-qiu"><li  id="kl10dwd4_s_01">01</li><li id="kl10dwd4_s_02">02</li><li id="kl10dwd4_s_03">03</li>'
				+'<li id="kl10dwd4_s_04">04</li><li id="kl10dwd4_s_05">05</li><li id="kl10dwd4_s_06">06</li><li id="kl10dwd4_s_07">07</li>'
				+'<li id="kl10dwd4_s_08">08</li><li id="kl10dwd4_s_09">09</li><li id="kl10dwd4_s_10">10</li><li id="kl10dwd4_s_11">11</li>'
				+'<li id="kl10dwd4_s_12">12</li><li id="kl10dwd4_s_13">13</li><li id="kl10dwd4_s_14">14</li><li id="kl10dwd4_s_15">15</li>'
				+'<li id="kl10dwd4_s_16">16</li><li id="kl10dwd4_s_17">17</li><li id="kl10dwd4_s_18">18</li><li id="kl10dwd4_s_19">19</li><li id="kl10dwd4_s_20">20</li></ul>'
				+ '<ul class="gongn"><li datascope="kl10dwd4_s_ful_1-20">全</li><li datascope="kl10dwd4_s_big_1-20">大</li><li datascope="kl10dwd4_s_sma_1-20">小</li>'
				+'<li datascope="kl10dwd4_s_sin_1-20">单</li><li datascope="kl10dwd4_s_dou_1-20">双</li><li datascope="kl10dwd4_s_cle_1-20">清</li></ul></dd></dl>',
			bettips: '从第四位中选一个号码组成一注。',
			betexample: '投注方案：02；开奖号码：* * * 02 * * * *',
			bethelp: '从第四位中选择一个1位数号码组成一注，所选号码与开奖号码全部相同，且顺序一致，即为中奖。',
			vali: function() {
				if (!way.get(this.rulecode + ".count.s")) {
					way.set("Lottery.itemcount", "0");
					way.set("Lottery.total", "0");
				} else if (way.get("Lottery.times")) {
					var itemcount = way.get(this.rulecode + ".count.s");
					way.set("Lottery.itemcount", ""+itemcount);
					var total = itemcount * way.get("Lottery.times") * way.get("http://www.yugj881.com/resources/main/lottery/Lottery.yjf") * Env.price;
					if (total)
						way.set("Lottery.total", total.toFixed(4));
					else way.set("Lottery.total", "0");
				} else {
					way.set("Lottery.total", "0");
				}
			},
			clear:function(){
				for (i=1; i <= 20; i++) {
					var j=i;
					if(i<10)
						j="0"+i;
					var item = $("#kl10dwd4_s_" + j);
					if (item.hasClass("cur")) {
						item.trigger('click');
					} 
				}
			}
		},"kl10dwd5": {
			showname: '复式',
			rulecode: 'kl10dwd5',
			realname: '[定位胆_第五位]',
			maxMultiplePerOrder:-1,
			maxPrize:-1,
			maxRecord:850,
			fixed: 0.015,
			minMode:1850,
			startPrice:4.125,
			calculatePrize:Env.defaultCalculate,
			pageHtml:'<dl class="danqiu" id="kl10dwd5">'
				+ '<dd><h5>第五位</h5>'
				+'<ul class="sz-qiu"><li  id="kl10dwd5_s_01">01</li><li id="kl10dwd5_s_02">02</li><li id="kl10dwd5_s_03">03</li>'
				+'<li id="kl10dwd5_s_04">04</li><li id="kl10dwd5_s_05">05</li><li id="kl10dwd5_s_06">06</li><li id="kl10dwd5_s_07">07</li>'
				+'<li id="kl10dwd5_s_08">08</li><li id="kl10dwd5_s_09">09</li><li id="kl10dwd5_s_10">10</li><li id="kl10dwd5_s_11">11</li>'
				+'<li id="kl10dwd5_s_12">12</li><li id="kl10dwd5_s_13">13</li><li id="kl10dwd5_s_14">14</li><li id="kl10dwd5_s_15">15</li>'
				+'<li id="kl10dwd5_s_16">16</li><li id="kl10dwd5_s_17">17</li><li id="kl10dwd5_s_18">18</li><li id="kl10dwd5_s_19">19</li><li id="kl10dwd5_s_20">20</li></ul>'
				+ '<ul class="gongn"><li datascope="kl10dwd5_s_ful_1-20">全</li><li datascope="kl10dwd5_s_big_1-20">大</li><li datascope="kl10dwd5_s_sma_1-20">小</li>'
				+'<li datascope="kl10dwd5_s_sin_1-20">单</li><li datascope="kl10dwd5_s_dou_1-20">双</li><li datascope="kl10dwd5_s_cle_1-20">清</li></ul></dd></dl>',
			bettips: '从第五位中选一个号码组成一注。',
			betexample: '投注方案：02；开奖号码：* * * * 02 * * *',
			bethelp: '从第五位中选择一个1位数号码组成一注，所选号码与开奖号码全部相同，且顺序一致，即为中奖。',
			vali: function() {
				if (!way.get(this.rulecode + ".count.s")) {
					way.set("Lottery.itemcount", "0");
					way.set("Lottery.total", "0");
				} else if (way.get("Lottery.times")) {
					var itemcount = way.get(this.rulecode + ".count.s");
					way.set("Lottery.itemcount", ""+itemcount);
					var total = itemcount * way.get("Lottery.times") * way.get("http://www.yugj881.com/resources/main/lottery/Lottery.yjf") * Env.price;
					if (total)
						way.set("Lottery.total", total.toFixed(4));
					else way.set("Lottery.total", "0");
				} else {
					way.set("Lottery.total", "0");
				}
			},
			clear:function(){
				for (i=1; i <= 20; i++) {
					var j=i;
					if(i<10)
						j="0"+i;
					var item = $("#kl10dwd5_s_" + j);
					if (item.hasClass("cur")) {
						item.trigger('click');
					} 
				}
			}
		},"kl10dwd6": {
			showname: '复式',
			rulecode: 'kl10dwd6',
			realname: '[定位胆_第六位]',
			maxMultiplePerOrder:-1,
			maxPrize:-1,
			maxRecord:850,
			fixed: 0.015,
			minMode:1850,
			startPrice:4.125,
			calculatePrize:Env.defaultCalculate,
			pageHtml:'<dl class="danqiu" id="kl10dwd6">'
				+ '<dd><h5>第六位</h5>'
				+'<ul class="sz-qiu"><li  id="kl10dwd6_s_01">01</li><li id="kl10dwd6_s_02">02</li><li id="kl10dwd6_s_03">03</li>'
				+'<li id="kl10dwd6_s_04">04</li><li id="kl10dwd6_s_05">05</li><li id="kl10dwd6_s_06">06</li><li id="kl10dwd6_s_07">07</li>'
				+'<li id="kl10dwd6_s_08">08</li><li id="kl10dwd6_s_09">09</li><li id="kl10dwd6_s_10">10</li><li id="kl10dwd6_s_11">11</li>'
				+'<li id="kl10dwd6_s_12">12</li><li id="kl10dwd6_s_13">13</li><li id="kl10dwd6_s_14">14</li><li id="kl10dwd6_s_15">15</li>'
				+'<li id="kl10dwd6_s_16">16</li><li id="kl10dwd6_s_17">17</li><li id="kl10dwd6_s_18">18</li><li id="kl10dwd6_s_19">19</li><li id="kl10dwd6_s_20">20</li></ul>'
				+ '<ul class="gongn"><li datascope="kl10dwd6_s_ful_1-20">全</li><li datascope="kl10dwd6_s_big_1-20">大</li><li datascope="kl10dwd6_s_sma_1-20">小</li>'
				+'<li datascope="kl10dwd6_s_sin_1-20">单</li><li datascope="kl10dwd6_s_dou_1-20">双</li><li datascope="kl10dwd6_s_cle_1-20">清</li></ul></dd></dl>',
			bettips: '从第六位中选一个号码组成一注。',
			betexample: '投注方案：02；开奖号码：* * * * * 02 * *',
			bethelp: '从第六位中选择一个1位数号码组成一注，所选号码与开奖号码全部相同，且顺序一致，即为中奖。',
			vali: function() {
				if (!way.get(this.rulecode + ".count.s")) {
					way.set("Lottery.itemcount", "0");
					way.set("Lottery.total", "0");
				} else if (way.get("Lottery.times")) {
					var itemcount = way.get(this.rulecode + ".count.s");
					way.set("Lottery.itemcount", ""+itemcount);
					var total = itemcount * way.get("Lottery.times") * way.get("http://www.yugj881.com/resources/main/lottery/Lottery.yjf") * Env.price;
					if (total)
						way.set("Lottery.total", total.toFixed(4));
					else way.set("Lottery.total", "0");
				} else {
					way.set("Lottery.total", "0");
				}
			},
			clear:function(){
				for (i=1; i <= 20; i++) {
					var j=i;
					if(i<10)
						j="0"+i;
					var item = $("#kl10dwd6_s_" + j);
					if (item.hasClass("cur")) {
						item.trigger('click');
					} 
				}
			}
		},"kl10dwd7": {
			showname: '复式',
			rulecode: 'kl10dwd7',
			realname: '[定位胆_第七位]',
			maxMultiplePerOrder:-1,
			maxPrize:-1,
			maxRecord:850,
			fixed: 0.015,
			minMode:1850,
			startPrice:4.125,
			calculatePrize:Env.defaultCalculate,
			pageHtml:'<dl class="danqiu" id="kl10dwd7">'
				+ '<dd><h5>第七位</h5>'
				+'<ul class="sz-qiu"><li  id="kl10dwd7_s_01">01</li><li id="kl10dwd7_s_02">02</li><li id="kl10dwd7_s_03">03</li>'
				+'<li id="kl10dwd7_s_04">04</li><li id="kl10dwd7_s_05">05</li><li id="kl10dwd7_s_06">06</li><li id="kl10dwd7_s_07">07</li>'
				+'<li id="kl10dwd7_s_08">08</li><li id="kl10dwd7_s_09">09</li><li id="kl10dwd7_s_10">10</li><li id="kl10dwd7_s_11">11</li>'
				+'<li id="kl10dwd7_s_12">12</li><li id="kl10dwd7_s_13">13</li><li id="kl10dwd7_s_14">14</li><li id="kl10dwd7_s_15">15</li>'
				+'<li id="kl10dwd7_s_16">16</li><li id="kl10dwd7_s_17">17</li><li id="kl10dwd7_s_18">18</li><li id="kl10dwd7_s_19">19</li><li id="kl10dwd7_s_20">20</li></ul>'
				+ '<ul class="gongn"><li datascope="kl10dwd7_s_ful_1-20">全</li><li datascope="kl10dwd7_s_big_1-20">大</li><li datascope="kl10dwd7_s_sma_1-20">小</li>'
				+'<li datascope="kl10dwd7_s_sin_1-20">单</li><li datascope="kl10dwd7_s_dou_1-20">双</li><li datascope="kl10dwd7_s_cle_1-20">清</li></ul></dd></dl>',
			bettips: '从第七位中选一个号码组成一注。',
			betexample: '投注方案：02；开奖号码：* * * * * * 02 *',
			bethelp: '从第七位中选择一个1位数号码组成一注，所选号码与开奖号码全部相同，且顺序一致，即为中奖。',
			vali: function() {
				if (!way.get(this.rulecode + ".count.s")) {
					way.set("Lottery.itemcount", "0");
					way.set("Lottery.total", "0");
				} else if (way.get("Lottery.times")) {
					var itemcount = way.get(this.rulecode + ".count.s");
					way.set("Lottery.itemcount", ""+itemcount);
					var total = itemcount * way.get("Lottery.times") * way.get("http://www.yugj881.com/resources/main/lottery/Lottery.yjf") * Env.price;
					if (total)
						way.set("Lottery.total", total.toFixed(4));
					else way.set("Lottery.total", "0");
				} else {
					way.set("Lottery.total", "0");
				}
			},
			clear:function(){
				for (i=1; i <= 20; i++) {
					var j=i;
					if(i<10)
						j="0"+i;
					var item = $("#kl10dwd7_s_" + j);
					if (item.hasClass("cur")) {
						item.trigger('click');
					} 
				}
			}
		},"kl10dwd8": {
			showname: '复式',
			rulecode: 'kl10dwd8',
			realname: '[定位胆_第八位]',
			maxMultiplePerOrder:-1,
			maxPrize:-1,
			maxRecord:850,
			fixed:0.015 ,
			minMode:1850,
			startPrice:4.125,
			calculatePrize:Env.defaultCalculate,
			pageHtml:'<dl class="danqiu" id="kl10dwd8">'
				+ '<dd><h5>第八位</h5>'
				+'<ul class="sz-qiu"><li  id="kl10dwd8_s_01">01</li><li id="kl10dwd8_s_02">02</li><li id="kl10dwd8_s_03">03</li>'
				+'<li id="kl10dwd8_s_04">04</li><li id="kl10dwd8_s_05">05</li><li id="kl10dwd8_s_06">06</li><li id="kl10dwd8_s_07">07</li>'
				+'<li id="kl10dwd8_s_08">08</li><li id="kl10dwd8_s_09">09</li><li id="kl10dwd8_s_10">10</li><li id="kl10dwd8_s_11">11</li>'
				+'<li id="kl10dwd8_s_12">12</li><li id="kl10dwd8_s_13">13</li><li id="kl10dwd8_s_14">14</li><li id="kl10dwd8_s_15">15</li>'
				+'<li id="kl10dwd8_s_16">16</li><li id="kl10dwd8_s_17">17</li><li id="kl10dwd8_s_18">18</li><li id="kl10dwd8_s_19">19</li><li id="kl10dwd8_s_20">20</li></ul>'
				+ '<ul class="gongn"><li datascope="kl10dwd8_s_ful_1-20">全</li><li datascope="kl10dwd8_s_big_1-20">大</li><li datascope="kl10dwd8_s_sma_1-20">小</li>'
				+'<li datascope="kl10dwd8_s_sin_1-20">单</li><li datascope="kl10dwd8_s_dou_1-20">双</li><li datascope="kl10dwd8_s_cle_1-20">清</li></ul></dd></dl>',
			bettips: '从第八位中选一个号码组成一注。',
			betexample: '投注方案：02；开奖号码：* * * * * * * 02',
			bethelp: '从第八位中选择一个1位数号码组成一注，所选号码与开奖号码全部相同，且顺序一致，即为中奖。',
			vali: function() {
				if (!way.get(this.rulecode + ".count.s")) {
					way.set("Lottery.itemcount", "0");
					way.set("Lottery.total", "0");
				} else if (way.get("Lottery.times")) {
					var itemcount = way.get(this.rulecode + ".count.s");
					way.set("Lottery.itemcount", ""+itemcount);
					var total = itemcount * way.get("Lottery.times") * way.get("http://www.yugj881.com/resources/main/lottery/Lottery.yjf") * Env.price;
					if (total)
						way.set("Lottery.total", total.toFixed(4));
					else way.set("Lottery.total", "0");
				} else {
					way.set("Lottery.total", "0");
				}
			},
			clear:function(){
				for (i=1; i <= 20; i++) {
					var j=i;
					if(i<10)
						j="0"+i;
					var item = $("#kl10dwd8_s_" + j);
					if (item.hasClass("cur")) {
						item.trigger('click');
					} 
				}
			}
		},
		"kl10rx1z1": {
			showname: '一中一',
			rulecode: 'kl10rx1z1',
			realname: '[任选_一中一]',
			maxMultiplePerOrder:-1,
			maxPrize:-1,
			maxRecord:-1,
			obtainMaxBetNumberPerOrder:function(currentRecodNumber){
				
				var max_p_n=5;
				
				if(currentRecodNumber>=max_p_n){
					
					return max_p_n;
				}else{
					
					return currentRecodNumber;
				}
				
				
			},
			fixed: 0.015,
			minMode:1850,
			startPrice:4.125,
			calculatePrize:Env.defaultCalculate,
			pageHtml:'<dl class="danqiu" id="kl10rx1z1">'
				+ '<dd><h5>一中一</h5>'
				+'<ul class="sz-qiu"><li  id="kl10rx1z1_b_01">01</li><li id="kl10rx1z1_b_02">02</li><li id="kl10rx1z1_b_03">03</li>'
				+'<li id="kl10rx1z1_b_04">04</li><li id="kl10rx1z1_b_05">05</li><li id="kl10rx1z1_b_06">06</li><li id="kl10rx1z1_b_07">07</li>'
				+'<li id="kl10rx1z1_b_08">08</li><li id="kl10rx1z1_b_09">09</li><li id="kl10rx1z1_b_10">10</li><li id="kl10rx1z1_b_11">11</li>'
				+'<li id="kl10rx1z1_b_12">12</li><li id="kl10rx1z1_b_13">13</li><li id="kl10rx1z1_b_14">14</li><li id="kl10rx1z1_b_15">15</li>'
				+'<li id="kl10rx1z1_b_16">16</li><li id="kl10rx1z1_b_17">17</li><li id="kl10rx1z1_b_18">18</li><li id="kl10rx1z1_b_19">19</li><li id="kl10rx1z1_b_20">20</li></ul>'
				+ '<ul class="gongn"><li datascope="kl10rx1z1_b_ful_1-20">全</li><li datascope="kl10rx1z1_b_big_1-20">大</li><li datascope="kl10rx1z1_b_sma_1-20">小</li>'
				+'<li datascope="kl10rx1z1_b_sin_1-20">单</li><li datascope="kl10rx1z1_b_dou_1-20">双</li><li datascope="kl10rx1z1_b_cle_1-20">清</li></ul></dd></dl>',
			bettips: '从01-20共20个号码中选择1个号码进行购买，只要当期顺序摇出的8个开奖号码中包含所选号码，即为中奖。',
			betexample: ' 如：选择05，开奖号码为08 04 11 05 03 06 20 18，即为中奖',
			bethelp: '从01-20共20个号码中选择1个号码进行购买，只要当期顺序摇出的8个开奖号码中包含所选号码，即为中奖。',
			vali: function() {
				if (!way.get(this.rulecode + ".count.b")) {
					way.set("Lottery.itemcount", "0");
					way.set("Lottery.total", "0");
				} else if (way.get("Lottery.times")) {
					var ballC = way.get(this.rulecode + ".count.b");
					var itemcount = 0;
					if(ballC){
						itemcount=ballC;
					}
					way.set("Lottery.itemcount", ""+itemcount);
					var total = itemcount * way.get("Lottery.times") * way.get("http://www.yugj881.com/resources/main/lottery/Lottery.yjf") * Env.price;
					if (total)
						way.set("Lottery.total", total.toFixed(4));
					else way.set("Lottery.total", "0");
				} else {
					way.set("Lottery.total", "0");
				}
			},
			clear:function(){
				for (i=1; i <=20; i++) {
					var j=i;
					if(i<10)
						j="0"+i;
					var item = $("#"+this.rulecode+"_b_" + j);
					if (item.hasClass("cur")) {
						item.trigger('click');
					} 
				}
			}

		},
		"kl10rx2z2": {
			showname: '二中二',
			rulecode: 'kl10rx2z2',
			realname: '[任选_二中二]',
			maxMultiplePerOrder:-1,
			maxPrize:-1,
			maxRecord:-1,
			obtainMaxBetNumberPerOrder:function(currentRecodNumber){
				
				var max_p_n=5*4/2;
				
				if(currentRecodNumber>=max_p_n){
					
					return max_p_n;
				}else{
					
					return currentRecodNumber;
				}
				
				
			},
			fixed: 0.03,
			minMode:1850,
			startPrice:8.25,
			calculatePrize:Env.defaultCalculate,
			pageHtml:'<dl class="danqiu" id="kl10rx2z2">'
				+ '<dd><h5>二中二</h5>'
				+'<ul class="sz-qiu"><li  id="kl10rx2z2_b_01">01</li><li id="kl10rx2z2_b_02">02</li><li id="kl10rx2z2_b_03">03</li>'
				+'<li id="kl10rx2z2_b_04">04</li><li id="kl10rx2z2_b_05">05</li><li id="kl10rx2z2_b_06">06</li><li id="kl10rx2z2_b_07">07</li>'
				+'<li id="kl10rx2z2_b_08">08</li><li id="kl10rx2z2_b_09">09</li><li id="kl10rx2z2_b_10">10</li><li id="kl10rx2z2_b_11">11</li>'
				+'<li id="kl10rx2z2_b_12">12</li><li id="kl10rx2z2_b_13">13</li><li id="kl10rx2z2_b_14">14</li><li id="kl10rx2z2_b_15">15</li>'
				+'<li id="kl10rx2z2_b_16">16</li><li id="kl10rx2z2_b_17">17</li><li id="kl10rx2z2_b_18">18</li><li id="kl10rx2z2_b_19">19</li><li id="kl10rx2z2_b_20">20</li></ul>'
				+ '<ul class="gongn"><li datascope="kl10rx2z2_b_ful_1-20">全</li><li datascope="kl10rx2z2_b_big_1-20">大</li><li datascope="kl10rx2z2_b_sma_1-20">小</li>'
				+'<li datascope="kl10rx2z2_b_sin_1-20">单</li><li datascope="kl10rx2z2_b_dou_1-20">双</li><li datascope="kl10rx2z2_b_cle_1-20">清</li></ul></dd></dl>',
			bettips: '从01-20共20个号码中选择2个号码进行购买，只要当期顺序摇出的8个开奖号码中包含所选号码，即为中奖。',
			betexample: '如：选择05 08，开奖号码为08 04 11 05 03 06 20 18，即为中奖',
			bethelp: '从01-20共20个号码中选择2个号码进行购买，只要当期顺序摇出的8个开奖号码中包含所选号码，即为中奖。',
			vali: function() {
				if (!way.get(this.rulecode + ".count.b")) {
					way.set("Lottery.itemcount", "0");
					way.set("Lottery.total", "0");
				} else if (way.get("Lottery.times")) {
					var ballb = way.get(this.rulecode + ".count.b");
					var itemcount = 0;
					if(ballb>1){
						itemcount=Number(ballb)*(Number(ballb)-1)/2;
					
						way.set("Lottery.itemcount", ""+itemcount);
						var total = itemcount * way.get("Lottery.times") * way.get("http://www.yugj881.com/resources/main/lottery/Lottery.yjf") * Env.price;
						if (total)
							way.set("Lottery.total", total.toFixed(4));
						else{ 
							way.set("Lottery.total", "0");
							way.set("Lottery.itemcount", "0");
						}
					}else{ 
						way.set("Lottery.total", "0");
						way.set("Lottery.itemcount", "0");
					}
				} else {
					way.set("Lottery.total", "0");
					way.set("Lottery.itemcount", "0");
				}
			},
			clear:function(){
				for (i=1; i <= 20; i++) {
					var j=i;
					if(i<10)
						j="0"+i;
					var item = $("#"+this.rulecode+"_b_" + j);
					if (item.hasClass("cur")) {
						item.trigger('click');
					} 
				}
			}

		},
		"kl10rx3z3": {
			showname: '三中三',
			rulecode: 'kl10rx3z3',
			realname: '[任选_三中三]',
			maxMultiplePerOrder:-1,
			maxPrize:-1,
			maxRecord:-1,
			obtainMaxBetNumberPerOrder:function(currentRecodNumber){
				
				var max_p_n=5*4/2;
				
				if(currentRecodNumber>=max_p_n){
					
					return max_p_n;
				}else{
					
					return currentRecodNumber;
				}
				
				
			},
			fixed: 0.08,
			minMode:1850,
			startPrice:24,
			calculatePrize:Env.defaultCalculate,
			pageHtml:'<dl class="danqiu" id="kl10rx3z3">'
				+ '<dd><h5>三中三</h5>'
				+'<ul class="sz-qiu"><li  id="kl10rx3z3_b_01">01</li><li id="kl10rx3z3_b_02">02</li><li id="kl10rx3z3_b_03">03</li>'
				+'<li id="kl10rx3z3_b_04">04</li><li id="kl10rx3z3_b_05">05</li><li id="kl10rx3z3_b_06">06</li><li id="kl10rx3z3_b_07">07</li>'
				+'<li id="kl10rx3z3_b_08">08</li><li id="kl10rx3z3_b_09">09</li><li id="kl10rx3z3_b_10">10</li><li id="kl10rx3z3_b_11">11</li>'
				+'<li id="kl10rx3z3_b_12">12</li><li id="kl10rx3z3_b_13">13</li><li id="kl10rx3z3_b_14">14</li><li id="kl10rx3z3_b_15">15</li>'
				+'<li id="kl10rx3z3_b_16">16</li><li id="kl10rx3z3_b_17">17</li><li id="kl10rx3z3_b_18">18</li><li id="kl10rx3z3_b_19">19</li><li id="kl10rx3z3_b_20">20</li></ul>'
				+ '<ul class="gongn"><li datascope="kl10rx3z3_b_ful_1-20">全</li><li datascope="kl10rx3z3_b_big_1-20">大</li><li datascope="kl10rx3z3_b_sma_1-20">小</li>'
				+'<li datascope="kl10rx3z3_b_sin_1-20">单</li><li datascope="kl10rx3z3_b_dou_1-20">双</li><li datascope="kl10rx3z3_b_cle_1-20">清</li></ul></dd></dl>',
			bettips: '从01-20共20个号码中选择3个号码进行购买，只要当期顺序摇出的8个开奖号码中包含所选号码，即为中奖。',
			betexample: '如：选择08 04 11，开奖号码为08 04 11 05 03 06 20 18，即为中奖',
			bethelp: '从01-20共20个号码中选择3个号码进行购买，只要当期顺序摇出的8个开奖号码中包含所选号码，即为中奖。',
			vali: function() {
				if (!way.get(this.rulecode + ".count.b")) {
					way.set("Lottery.itemcount", "0");
					way.set("Lottery.total", "0");
				} else if (way.get("Lottery.times")) {
					var ballb = way.get(this.rulecode + ".count.b");
					var itemcount = 0;
					if(ballb>2){
						itemcount=Number(ballb)*(Number(ballb)-1)*(Number(ballb)-2)/6;
					
						way.set("Lottery.itemcount", ""+itemcount);
						var total = itemcount * way.get("Lottery.times") * way.get("http://www.yugj881.com/resources/main/lottery/Lottery.yjf") * Env.price;
						if (total)
							way.set("Lottery.total", total.toFixed(4));
						else {
							way.set("Lottery.total", "0");
							way.set("Lottery.itemcount", "0");
						}
					}else {
						way.set("Lottery.total", "0");
						way.set("Lottery.itemcount", "0");
					}
				} else {
					way.set("Lottery.total", "0");
					way.set("Lottery.itemcount", "0");
				}
			},
			clear:function(){
				for (i=1; i <= 20; i++) {
					var j=i;
					if(i<10)
						j="0"+i;
					var item = $("#"+this.rulecode+"_b_" + j);
					if (item.hasClass("cur")) {
						item.trigger('click');
					} 
				}
			}

		},
		"kl10rx4z4": {
			showname: '四中四',
			rulecode: 'kl10rx4z4',
			realname: '[任选_四中四]',
			maxMultiplePerOrder:-1,
			maxPrize:-1,
			maxRecord:-1,
			obtainMaxBetNumberPerOrder:function(currentRecodNumber){
				
				var max_p_n=5;
				
				if(currentRecodNumber>=max_p_n){
					
					return max_p_n;
				}else{
					
					return currentRecodNumber;
				}
				
				
			},
			fixed: 0.3,
			minMode:1850,
			startPrice:81.5,
			calculatePrize:Env.defaultCalculate,
			pageHtml:'<dl class="danqiu" id="kl10rx4z4">'
				+ '<dd><h5>四中四</h5>'
				+'<ul class="sz-qiu"><li  id="kl10rx4z4_b_01">01</li><li id="kl10rx4z4_b_02">02</li><li id="kl10rx4z4_b_03">03</li>'
				+'<li id="kl10rx4z4_b_04">04</li><li id="kl10rx4z4_b_05">05</li><li id="kl10rx4z4_b_06">06</li><li id="kl10rx4z4_b_07">07</li>'
				+'<li id="kl10rx4z4_b_08">08</li><li id="kl10rx4z4_b_09">09</li><li id="kl10rx4z4_b_10">10</li><li id="kl10rx4z4_b_11">11</li>'
				+'<li id="kl10rx4z4_b_12">12</li><li id="kl10rx4z4_b_13">13</li><li id="kl10rx4z4_b_14">14</li><li id="kl10rx4z4_b_15">15</li>'
				+'<li id="kl10rx4z4_b_16">16</li><li id="kl10rx4z4_b_17">17</li><li id="kl10rx4z4_b_18">18</li><li id="kl10rx4z4_b_19">19</li><li id="kl10rx4z4_b_20">20</li></ul>'
				+ '<ul class="gongn"><li datascope="kl10rx4z4_b_ful_1-20">全</li><li datascope="kl10rx4z4_b_big_1-20">大</li><li datascope="kl10rx4z4_b_sma_1-20">小</li>'
				+'<li datascope="kl10rx4z4_b_sin_1-20">单</li><li datascope="kl10rx4z4_b_dou_1-20">双</li><li datascope="kl10rx4z4_b_cle_1-20">清</li></ul></dd></dl>',
			bettips: '从01-20共20个号码中选择4个号码进行购买，只要当期顺序摇出的8个开奖号码中包含所选号码，即为中奖。',
			betexample: '如：选择08 04 11 05，开奖号码为08 04 11 05 03 06 20 18，即为中奖',
			bethelp: '从01-20共20个号码中选择4个号码进行购买，只要当期顺序摇出的8个开奖号码中包含所选号码，即为中奖。',
			vali: function() {
				if (!way.get(this.rulecode + ".count.b")) {
					way.set("Lottery.itemcount", "0");
					way.set("Lottery.total", "0");
				} else if (way.get("Lottery.times")) {
					var ballb = way.get(this.rulecode + ".count.b");
					var itemcount = 0;
					if(ballb>3){
						itemcount=Number(ballb)*(Number(ballb)-1)*(Number(ballb)-2)*(Number(ballb)-3)/24;
					
						way.set("Lottery.itemcount", ""+itemcount);
						var total = itemcount * way.get("Lottery.times") * way.get("http://www.yugj881.com/resources/main/lottery/Lottery.yjf") * Env.price;
						if (total)
							way.set("Lottery.total", total.toFixed(4));
						else {
							way.set("Lottery.total", "0");
							way.set("Lottery.itemcount", "0");
						}
					}else {
						way.set("Lottery.total", "0");
						way.set("Lottery.itemcount", "0");
					}
				} else {
					way.set("Lottery.total", "0");
					way.set("Lottery.itemcount", "0");
				}
			},
			clear:function(){
				for (i=1; i <= 20; i++) {
					var j=i;
					if(i<10)
						j="0"+i;
					var item = $("#"+this.rulecode+"_b_" + j);
					if (item.hasClass("cur")) {
						item.trigger('click');
					} 
				}
			}

		},
		"kl10rx5z5": {
			showname: '五中五',
			rulecode: 'kl10rx5z5',
			realname: '[任选_五中五]',
			maxMultiplePerOrder:-1,
			maxPrize:-1,
			maxRecord:-1,
			fixed: 1.2,
			minMode:1850,
			startPrice:330,
			calculatePrize:Env.defaultCalculate,
			pageHtml:'<dl class="danqiu" id="kl10rx5z5">'
				+ '<dd><h5>五中五</h5>'
				+'<ul class="sz-qiu"><li  id="kl10rx5z5_b_01">01</li><li id="kl10rx5z5_b_02">02</li><li id="kl10rx5z5_b_03">03</li>'
				+'<li id="kl10rx5z5_b_04">04</li><li id="kl10rx5z5_b_05">05</li><li id="kl10rx5z5_b_06">06</li><li id="kl10rx5z5_b_07">07</li>'
				+'<li id="kl10rx5z5_b_08">08</li><li id="kl10rx5z5_b_09">09</li><li id="kl10rx5z5_b_10">10</li><li id="kl10rx5z5_b_11">11</li>'
				+'<li id="kl10rx5z5_b_12">12</li><li id="kl10rx5z5_b_13">13</li><li id="kl10rx5z5_b_14">14</li><li id="kl10rx5z5_b_15">15</li>'
				+'<li id="kl10rx5z5_b_16">16</li><li id="kl10rx5z5_b_17">17</li><li id="kl10rx5z5_b_18">18</li><li id="kl10rx5z5_b_19">19</li><li id="kl10rx5z5_b_20">20</li></ul>'
				+ '<ul class="gongn"><li datascope="kl10rx5z5_b_ful_1-20">全</li><li datascope="kl10rx5z5_b_big_1-20">大</li><li datascope="kl10rx5z5_b_sma_1-20">小</li>'
				+'<li datascope="kl10rx5z5_b_sin_1-20">单</li><li datascope="kl10rx5z5_b_dou_1-20">双</li><li datascope="kl10rx5z5_b_cle_1-20">清</li></ul></dd></dl>',
			bettips: '任选五：从01-20共20个号码中选择5个号码进行购买，只要当期顺序摇出的8个开奖号码中包含所选号码，即为中奖。',
			betexample: '如：选择08 04 11 05 03，开奖号码为08 04 11 05 03 06 20 18，即为中奖',
			bethelp: '任选五：从01-20共20个号码中选择5个号码进行购买，只要当期顺序摇出的8个开奖号码中包含所选号码，即为中奖。',
			vali: function() {
				if (!way.get(this.rulecode + ".count.b")) {
					way.set("Lottery.itemcount", "0");
					way.set("Lottery.total", "0");
				} else if (way.get("Lottery.times")) {
					var ballb = way.get(this.rulecode + ".count.b");
					var itemcount = 0;
					if(ballb>4){
						itemcount=Number(ballb)*(Number(ballb)-1)*(Number(ballb)-2)*(Number(ballb)-3)*(Number(ballb)-4)/120;
					
						way.set("Lottery.itemcount", ""+itemcount);
						var total = itemcount * way.get("Lottery.times") * way.get("http://www.yugj881.com/resources/main/lottery/Lottery.yjf") * Env.price;
						if (total)
							way.set("Lottery.total", total.toFixed(4));
						else{
							way.set("Lottery.total", "0");
							way.set("Lottery.itemcount","0");
						}
					}else{
						way.set("Lottery.total", "0");
						way.set("Lottery.itemcount","0");
					}
				} else {
					way.set("Lottery.total", "0");
					way.set("Lottery.itemcount", "0");
				}
			},
			clear:function(){
				for (i=1; i <= 20; i++) {
					var j=i;
					if(i<10)
						j="0"+i;
					var item = $("#"+this.rulecode+"_b_" + j);
					if (item.hasClass("cur")) {
						item.trigger('click');
					} 
				}
			}

		},
		"kl10dt2z2":{
			showname: '二中二',
			rulecode: 'kl10dt2z2',
			realname: '[胆拖任选_二中二]',
			maxMultiplePerOrder:-1,
			maxPrize:-1,
			maxRecord:-1,
			obtainMaxBetNumberPerOrder:function(currentRecodNumber){
				
				var max_p_n=4;
				
				if(currentRecodNumber>=max_p_n){
					
					return max_p_n;
				}else{
					
					return currentRecodNumber;
				}
				
				
			},
			fixed: 0.03,
			minMode:1850,
			startPrice:8.25,
			calculatePrize:Env.defaultCalculate,
			pageHtml:'<dl class="danqiu" id="kl10dt2z2">'
				+ '<dd><h5>胆码</h5>'
				+'<ul class="sz-qiu"><li  id="kl10dt2z2_d_01">01</li><li id="kl10dt2z2_d_02">02</li><li id="kl10dt2z2_d_03">03</li>'
				+'<li id="kl10dt2z2_d_04">04</li><li id="kl10dt2z2_d_05">05</li><li id="kl10dt2z2_d_06">06</li><li id="kl10dt2z2_d_07">07</li>'
				+'<li id="kl10dt2z2_d_08">08</li><li id="kl10dt2z2_d_09">09</li><li id="kl10dt2z2_d_10">10</li><li id="kl10dt2z2_d_11">11</li>'
				+'<li id="kl10dt2z2_d_12">12</li><li id="kl10dt2z2_d_13">13</li><li id="kl10dt2z2_d_14">14</li><li id="kl10dt2z2_d_15">15</li>'
				+'<li id="kl10dt2z2_d_16">16</li><li id="kl10dt2z2_d_17">17</li><li id="kl10dt2z2_d_18">18</li><li id="kl10dt2z2_d_19">19</li><li id="kl10dt2z2_d_20">20</li></ul>'
				+'<ul class="gongn"><li datascope="kl10dt2z2_d_ful_1-20">全</li><li datascope="kl10dt2z2_d_big_1-20">大</li><li datascope="kl10dt2z2_d_sma_1-20">小</li>'
				+'<li datascope="kl10dt2z2_d_sin_1-20">单</li><li datascope="kl10dt2z2_d_dou_1-20">双</li><li datascope="kl10dt2z2_d_cle_1-20">清</li></ul></dd>'
				+'<dd><h5>拖码</h5>'
				+'<ul class="sz-qiu"><li  id="kl10dt2z2_t_01">01</li><li id="kl10dt2z2_t_02">02</li><li id="kl10dt2z2_t_03">03</li>'
				+'<li id="kl10dt2z2_t_04">04</li><li id="kl10dt2z2_t_05">05</li><li id="kl10dt2z2_t_06">06</li><li id="kl10dt2z2_t_07">07</li>'
				+'<li id="kl10dt2z2_t_08">08</li><li id="kl10dt2z2_t_09">09</li><li id="kl10dt2z2_t_10">10</li><li id="kl10dt2z2_t_11">11</li>'
				+'<li id="kl10dt2z2_t_12">12</li><li id="kl10dt2z2_t_13">13</li><li id="kl10dt2z2_t_14">14</li><li id="kl10dt2z2_t_15">15</li>'
				+'<li id="kl10dt2z2_t_16">16</li><li id="kl10dt2z2_t_17">17</li><li id="kl10dt2z2_t_18">18</li><li id="kl10dt2z2_t_19">19</li><li id="kl10dt2z2_t_20">20</li></ul>'
				+'<ul class="gongn"><li datascope="kl10dt2z2_t_ful_1-20">全</li><li datascope="kl10dt2z2_t_big_1-20">大</li><li datascope="kl10dt2z2_t_sma_1-20">小</li>'
				+'<li datascope="kl10dt2z2_t_sin_1-20">单</li><li datascope="kl10dt2z2_t_dou_1-20">双</li><li datascope="kl10dt2z2_t_cle_1-20">清</li></ul></dd></dl>',
			bettips: '分别从胆码和拖码的01-20中，至少选择1个胆码和1个拖码组成一注，只要当期顺序摇出的8个开奖号码中同时包含所选的1个胆码和1个拖码，即为中奖。',
			betexample: '选择胆码 08，选择拖码 06，开奖号码为 06 08 11 09 02 15 18 20，即为中奖。',
			bethelp: '分别从胆码和拖码的01-20中，至少选择1个胆码和1个拖码组成一注，只要当期顺序摇出的8个开奖号码中同时包含所选的1个胆码和1个拖码，即为中奖。',
			textarea: {},
			formatBalls : function(balls) {
				return formatBall(balls['d'])+','+formatBall(balls['t']);
			},
			vali: function(e) {
				
				if (!way.get(this.rulecode + ".count.d") || !way.get(this.rulecode + ".count.t")) {
					way.set("Lottery.itemcount", "0");
					way.set("Lottery.total", "0");
				} else if (way.get("Lottery.times")) {
					
					var selected_d_ball_array=way.get(this.rulecode + ".balls.d");
					
					var selected_t_ball_array=way.get(this.rulecode + ".balls.t");
					
					if(selected_d_ball_array&&selected_d_ball_array.length>0&&selected_t_ball_array&&selected_t_ball_array.length>0){
						var isfor=true;
						for(i=0;isfor&&i<selected_d_ball_array.length;i++)
							if(selected_d_ball_array[i])
								for(j=0;j<selected_t_ball_array.length;j++)
									if(selected_t_ball_array[j]&&selected_t_ball_array[j]==selected_d_ball_array[i])
							{
										var ss = e.target.id.split("_");
										var balls = way.get(ss[0] + ".balls." + ss[1]);										
										var count = way.get(ss[0] + ".count." + ss[1]);
										if ($(e.target).hasClass("cur")) {
											$(e.target).removeClass("cur");
											balls[eval(ss[2])] = "";
											way.set(ss[0] + ".count." + ss[1], count - 1);
										} else {
											$(e.target).addClass("cur");
											balls[eval(ss[2])] = ss[2];
											way.set(ss[0] + ".count." + ss[1], count + 1);
										}
										popTips('胆码拖码数字不能相同', "error");
										isfor=false;
										break;
							}
					}
					
					var d_count=way.get(this.rulecode + ".count.d");
					var t_count=way.get(this.rulecode + ".count.t");
					var itemcount=0;
								
					if((d_count==1&&t_count>=1)){
						
						var op_flag=false;
						
						for(var oo=0;oo<selected_d_ball_array.length;oo++){
							
							var temp_o_d_ball_number=selected_d_ball_array[oo];
							
							if(temp_o_d_ball_number!=undefined&&temp_o_d_ball_number!=""){
								
								for(var mm=0;mm<selected_t_ball_array.length;mm++){
									
									var temp_t_dd_ball_number=selected_t_ball_array[mm];
									
									if(temp_t_dd_ball_number!=undefined&&temp_t_dd_ball_number!=""){
										
										if(eval(temp_o_d_ball_number)==eval(temp_t_dd_ball_number)){
											
											op_flag=true;
											break;
										}
									}
									
								}
							}
							
							if(op_flag==true){
								
								break;
								
							}
							
						}
						
						if(op_flag==false){
							
							 if(d_count==1){
								
								if(t_count>=1){
									
									itemcount=t_count;
									
								}
								
							}
								
								
						 }
									
							
					}
					if(itemcount==0){
						
						itemcount="0";

					}else{
						
						itemcount=parseInt(itemcount);
					}
							
										
					way.set("Lottery.itemcount", ""+itemcount);
					var total = itemcount * way.get("Lottery.times") * way.get("http://www.yugj881.com/resources/main/lottery/Lottery.yjf") * Env.price;
					if (total)
						way.set("Lottery.total",  total.toFixed(4));
					else way.set("Lottery.total", "0");
					
					
				} else {
					way.set("Lottery.total", "0");
				}
				
			},
			clear:function(){
				var ss=["d","t"];
				for(var k=0;k<2;k++)
				for (var i=1; i <= 20; i++) {
					var j = i;
					if(j<10)
						j="0"+j
					var item = $("#kl10dt2z2_" + ss[k]+"_" + j);
					if (item.hasClass("cur")) {
						item.trigger('click');
					} 
				}
			}

		},
		"kl10dt3z3":{
			showname: '三中三',
			rulecode: 'kl10dt3z3',
			realname: '[胆拖任选_三中三]',
			maxMultiplePerOrder:-1,
			maxPrize:-1,
			maxRecord:-1,
			obtainMaxBetNumberPerOrder:function(currentRecodNumber){
				
				var max_p_n=4*3/2;
				
				if(currentRecodNumber>=max_p_n){
					
					return max_p_n;
				}else{
					
					return currentRecodNumber;
				}
				
				
			},
			fixed: 0.08,
			minMode:1850,
			startPrice:24,
			calculatePrize:Env.defaultCalculate,
			pageHtml:'<dl class="danqiu" id="kl10dt3z3">'
				+ '<dd><h5>胆码</h5>'
				+'<ul class="sz-qiu"><li  id="kl10dt3z3_d_01">01</li><li id="kl10dt3z3_d_02">02</li><li id="kl10dt3z3_d_03">03</li>'
				+'<li id="kl10dt3z3_d_04">04</li><li id="kl10dt3z3_d_05">05</li><li id="kl10dt3z3_d_06">06</li><li id="kl10dt3z3_d_07">07</li>'
				+'<li id="kl10dt3z3_d_08">08</li><li id="kl10dt3z3_d_09">09</li><li id="kl10dt3z3_d_10">10</li><li id="kl10dt3z3_d_11">11</li>'
				+'<li id="kl10dt3z3_d_12">12</li><li id="kl10dt3z3_d_13">13</li><li id="kl10dt3z3_d_14">14</li><li id="kl10dt3z3_d_15">15</li>'
				+'<li id="kl10dt3z3_d_16">16</li><li id="kl10dt3z3_d_17">17</li><li id="kl10dt3z3_d_18">18</li><li id="kl10dt3z3_d_19">19</li><li id="kl10dt3z3_d_20">20</li></ul>'
				+'<ul class="gongn"><li datascope="kl10dt3z3_d_ful_1-20">全</li><li datascope="kl10dt3z3_d_big_1-20">大</li><li datascope="kl10dt3z3_d_sma_1-20">小</li>'
				+'<li datascope="kl10dt3z3_d_sin_1-20">单</li><li datascope="kl10dt3z3_d_dou_1-20">双</li><li datascope="kl10dt3z3_d_cle_1-20">清</li></ul></dd>'
				+'<dd><h5>拖码</h5>'
				+'<ul class="sz-qiu"><li  id="kl10dt3z3_t_01">01</li><li id="kl10dt3z3_t_02">02</li><li id="kl10dt3z3_t_03">03</li>'
				+'<li id="kl10dt3z3_t_04">04</li><li id="kl10dt3z3_t_05">05</li><li id="kl10dt3z3_t_06">06</li><li id="kl10dt3z3_t_07">07</li>'
				+'<li id="kl10dt3z3_t_08">08</li><li id="kl10dt3z3_t_09">09</li><li id="kl10dt3z3_t_10">10</li><li id="kl10dt3z3_t_11">11</li>'
				+'<li id="kl10dt3z3_t_12">12</li><li id="kl10dt3z3_t_13">13</li><li id="kl10dt3z3_t_14">14</li><li id="kl10dt3z3_t_15">15</li>'
				+'<li id="kl10dt3z3_t_16">16</li><li id="kl10dt3z3_t_17">17</li><li id="kl10dt3z3_t_18">18</li><li id="kl10dt3z3_t_19">19</li><li id="kl10dt3z3_t_20">20</li></ul>'
				+'<ul class="gongn"><li datascope="kl10dt3z3_t_ful_1-20">全</li><li datascope="kl10dt3z3_t_big_1-20">大</li><li datascope="kl10dt3z3_t_sma_1-20">小</li>'
				+'<li datascope="kl10dt3z3_t_sin_1-20">单</li><li datascope="kl10dt3z3_t_dou_1-20">双</li><li datascope="kl10dt3z3_t_cle_1-20">清</li></ul></dd></dl>',
			bettips: '分别从胆码和拖码的01-20中，至少选择1个胆码和2个拖码组成一注，只要当期顺序摇出的8个开奖号码中同时包含所选的1个胆码和2个拖码，即为中奖。',
			betexample: '选择胆码 08，选择拖码 06 11，开奖号码为 06 08 11 09 02 15 18 20，即为中奖。',
			bethelp: '分别从胆码和拖码的01-20中，至少选择1个胆码和2个拖码组成一注，只要当期顺序摇出的8个开奖号码中同时包含所选的1个胆码和2个拖码，即为中奖。',
			textarea: {},
			formatBalls : function(balls) {
				return formatBall(balls['d'])+','+formatBall(balls['t']);
			},
			vali: function(e) {
				
				if (!way.get(this.rulecode + ".count.d") || !way.get(this.rulecode + ".count.t")) {
					way.set("Lottery.itemcount", "0");
					way.set("Lottery.total", "0");
				} else if (way.get("Lottery.times")) {
					
					var selected_d_ball_array=way.get(this.rulecode + ".balls.d");
					
					var selected_t_ball_array=way.get(this.rulecode + ".balls.t");
					
					if(selected_d_ball_array&&selected_d_ball_array.length>0&&selected_t_ball_array&&selected_t_ball_array.length>0){
						var isfor=true;
						for(i=0;isfor&&i<selected_d_ball_array.length;i++)
							if(selected_d_ball_array[i])
								for(j=0;j<selected_t_ball_array.length;j++)
									if(selected_t_ball_array[j]&&selected_t_ball_array[j]==selected_d_ball_array[i])
							{
										var ss = e.target.id.split("_");
										var balls = way.get(ss[0] + ".balls." + ss[1]);										
										var count = way.get(ss[0] + ".count." + ss[1]);
										if ($(e.target).hasClass("cur")) {
											$(e.target).removeClass("cur");
											balls[eval(ss[2])] = "";
											way.set(ss[0] + ".count." + ss[1], count - 1);
										} else {
											$(e.target).addClass("cur");
											balls[eval(ss[2])] = ss[2];
											way.set(ss[0] + ".count." + ss[1], count + 1);
										}
										popTips('胆码拖码数字不能相同', "error");
										isfor=false;
										break;
							}
					}
					
					var d_count=way.get(this.rulecode + ".count.d");
					var t_count=way.get(this.rulecode + ".count.t");
					
					var itemcount=0;
						

					if(d_count<=2&&d_count>0){
						
						var op_flag=false;
						
						for(var oo=0;oo<selected_d_ball_array.length;oo++){
							
							var temp_o_d_ball_number=selected_d_ball_array[oo];
							
							if(temp_o_d_ball_number!=undefined&&temp_o_d_ball_number!=""){
								
								for(var mm=0;mm<selected_t_ball_array.length;mm++){
									
									var temp_o_dd_ball_number=selected_t_ball_array[mm];
									
									if(temp_o_dd_ball_number!=undefined&&temp_o_dd_ball_number!=""){
										
										if(eval(temp_o_dd_ball_number)==eval(temp_o_d_ball_number)){
											
											op_flag=true;
											break;
										}
									}
								}
							}
							
							if(op_flag==true){
								
								break;
								
							}
							
						}
						
						if(op_flag==false){
							
							if(d_count==1){
								
								
								if(t_count>=2){
									
									itemcount=t_count*(t_count-1)/2;
									
								}
								
									
							}else if(d_count==2){
								
								if(t_count>=1){
									
									itemcount=t_count;
									
								}
								
							}
								
								
						 }
									
							
					}
					if(itemcount==0){
						
						itemcount="0";

					}else{
						
						itemcount=parseInt(itemcount);
					}
								
					
										
					way.set("Lottery.itemcount", ""+itemcount);
					var total = itemcount * way.get("Lottery.times") * way.get("http://www.yugj881.com/resources/main/lottery/Lottery.yjf") * Env.price;
					if (total)
						way.set("Lottery.total",  total.toFixed(4));
					else way.set("Lottery.total", "0");
					
					
				} else {
					way.set("Lottery.total", "0");
				}
				
			},
			clear:function(){
				var ss=["d","t"];
				for(var k=0;k<2;k++)
				for (var i=1; i <= 20; i++) {
					var j = i;
					if(j<10)
						j="0"+j
					var item = $("#kl10dt3z3_" + ss[k]+"_" + j);
					if (item.hasClass("cur")) {
						item.trigger('click');
					} 
				}
			}

		},
		"kl10dt4z4":{
			showname: '四中四',
			rulecode: 'kl10dt4z4',
			realname: '[胆拖任选_四中四]',
			maxMultiplePerOrder:-1,
			maxPrize:-1,
			maxRecord:-1,
			obtainMaxBetNumberPerOrder:function(currentRecodNumber){
				
				var max_p_n=4;
				
				if(currentRecodNumber>=max_p_n){
					
					return max_p_n;
				}else{
					
					return currentRecodNumber;
				}
				
				
			},
			fixed: 0.3,
			minMode:1850,
			startPrice:81.5,
			calculatePrize:Env.defaultCalculate,
			pageHtml:'<dl class="danqiu" id="kl10dt4z4">'
				+ '<dd><h5>胆码</h5>'
				+'<ul class="sz-qiu"><li  id="kl10dt4z4_d_01">01</li><li id="kl10dt4z4_d_02">02</li><li id="kl10dt4z4_d_03">03</li>'
				+'<li id="kl10dt4z4_d_04">04</li><li id="kl10dt4z4_d_05">05</li><li id="kl10dt4z4_d_06">06</li><li id="kl10dt4z4_d_07">07</li>'
				+'<li id="kl10dt4z4_d_08">08</li><li id="kl10dt4z4_d_09">09</li><li id="kl10dt4z4_d_10">10</li><li id="kl10dt4z4_d_11">11</li>'
				+'<li id="kl10dt4z4_d_12">12</li><li id="kl10dt4z4_d_13">13</li><li id="kl10dt4z4_d_14">14</li><li id="kl10dt4z4_d_15">15</li>'
				+'<li id="kl10dt4z4_d_16">16</li><li id="kl10dt4z4_d_17">17</li><li id="kl10dt4z4_d_18">18</li><li id="kl10dt4z4_d_19">19</li><li id="kl10dt4z4_d_20">20</li></ul>'
				+'<ul class="gongn"><li datascope="kl10dt4z4_d_ful_1-20">全</li><li datascope="kl10dt4z4_d_big_1-20">大</li><li datascope="kl10dt4z4_d_sma_1-20">小</li>'
				+'<li datascope="kl10dt4z4_d_sin_1-20">单</li><li datascope="kl10dt4z4_d_dou_1-20">双</li><li datascope="kl10dt4z4_d_cle_1-20">清</li></ul></dd>'
				+'<dd><h5>拖码</h5>'
				+'<ul class="sz-qiu"><li  id="kl10dt4z4_t_01">01</li><li id="kl10dt4z4_t_02">02</li><li id="kl10dt4z4_t_03">03</li>'
				+'<li id="kl10dt4z4_t_04">04</li><li id="kl10dt4z4_t_05">05</li><li id="kl10dt4z4_t_06">06</li><li id="kl10dt4z4_t_07">07</li>'
				+'<li id="kl10dt4z4_t_08">08</li><li id="kl10dt4z4_t_09">09</li><li id="kl10dt4z4_t_10">10</li><li id="kl10dt4z4_t_11">11</li>'
				+'<li id="kl10dt4z4_t_12">12</li><li id="kl10dt4z4_t_13">13</li><li id="kl10dt4z4_t_14">14</li><li id="kl10dt4z4_t_15">15</li>'
				+'<li id="kl10dt4z4_t_16">16</li><li id="kl10dt4z4_t_17">17</li><li id="kl10dt4z4_t_18">18</li><li id="kl10dt4z4_t_19">19</li><li id="kl10dt4z4_t_20">20</li></ul>'
				+'<ul class="gongn"><li datascope="kl10dt4z4_t_ful_1-20">全</li><li datascope="kl10dt4z4_t_big_1-20">大</li><li datascope="kl10dt4z4_t_sma_1-20">小</li>'
				+'<li datascope="kl10dt4z4_t_sin_1-20">单</li><li datascope="kl10dt4z4_t_dou_1-20">双</li><li datascope="kl10dt4z4_t_cle_1-20">清</li></ul></dd></dl>',
			bettips: '分别从胆码和拖码的01-20中，至少选择1个胆码和3个拖码组成一注，只要当期顺序摇出的8个开奖号码中同时包含所选的1个胆码和3个拖码，即为中奖。',
			betexample: '选择胆码 08，选择拖码 06 09 11，开奖号码为 06 08 11 09 02 15 18 20，即为中奖。',
			bethelp: '分别从胆码和拖码的01-20中，至少选择1个胆码和3个拖码组成一注，只要当期顺序摇出的8个开奖号码中同时包含所选的1个胆码和3个拖码，即为中奖。 ',
			textarea: {},
			formatBalls : function(balls) {
				return formatBall(balls['d'])+','+formatBall(balls['t']);
			},
			vali: function(e) {
				
				if (!way.get(this.rulecode + ".count.d") || !way.get(this.rulecode + ".count.t")) {
					way.set("Lottery.itemcount", "0");
					way.set("Lottery.total", "0");
				} else if (way.get("Lottery.times")) {
					
					var selected_d_ball_array=way.get(this.rulecode + ".balls.d");
					
					var selected_t_ball_array=way.get(this.rulecode + ".balls.t");
					
					if(selected_d_ball_array&&selected_d_ball_array.length>0&&selected_t_ball_array&&selected_t_ball_array.length>0){
						var isfor=true;
						for(i=0;isfor&&i<selected_d_ball_array.length;i++)
							if(selected_d_ball_array[i])
								for(j=0;j<selected_t_ball_array.length;j++)
									if(selected_t_ball_array[j]&&selected_t_ball_array[j]==selected_d_ball_array[i])
							{
										var ss = e.target.id.split("_");
										var balls = way.get(ss[0] + ".balls." + ss[1]);										
										var count = way.get(ss[0] + ".count." + ss[1]);
										if ($(e.target).hasClass("cur")) {
											$(e.target).removeClass("cur");
											balls[eval(ss[2])] = "";
											way.set(ss[0] + ".count." + ss[1], count - 1);
										} else {
											$(e.target).addClass("cur");
											balls[eval(ss[2])] = ss[2];
											way.set(ss[0] + ".count." + ss[1], count + 1);
										}
										popTips('胆码拖码数字不能相同', "error");
										isfor=false;
										break;
							}
					}
					
					var d_count=way.get(this.rulecode + ".count.d");
					var t_count=way.get(this.rulecode + ".count.t");
					var itemcount=0;
										
					
					if(d_count<=3&&d_count>0){
						
						var op_flag=false;
						
						for(var oo=0;oo<selected_d_ball_array.length;oo++){
							
							var temp_o_d_ball_number=selected_d_ball_array[oo];
							
							if(temp_o_d_ball_number!=undefined&&temp_o_d_ball_number!=""){
								
								for(var mm=0;mm<selected_t_ball_array.length;mm++){
									
									var temp_o_t_ball_number=selected_t_ball_array[mm];
									
									if(temp_o_t_ball_number!=undefined&&temp_o_t_ball_number!=""){
										if(eval(temp_o_d_ball_number)==eval(temp_o_t_ball_number)){
											
											op_flag=true;
											break;
										}
									}
									
								}
							}
							
							if(op_flag==true){
								
								break;
								
							}
							
						}
						
						if(op_flag==false){
							
							if(d_count==1){
								
								
								if(t_count>=3){
									
									itemcount=t_count*(t_count-1)*(t_count-2)/(3*2);
									
								}
								
									
							}else if(d_count==2){
								
								if(t_count>=2){
									
									itemcount=t_count*(t_count-1)/2;

								}
								
							}else if(d_count==3){
								
								
								if(t_count>=1){
									
									itemcount=t_count;

								}
								
							}
								
								
						 }
									
							
					}
					if(itemcount==0){
						
						itemcount="0";

					}else{
						
						itemcount=parseInt(itemcount);
					}
					
					
					way.set("Lottery.itemcount", ""+itemcount);
					var total = itemcount * way.get("Lottery.times") * way.get("http://www.yugj881.com/resources/main/lottery/Lottery.yjf") * Env.price;
					if (total)
						way.set("Lottery.total",  total.toFixed(4));
					else way.set("Lottery.total", "0");
					
					
				} else {
					way.set("Lottery.total", "0");
				}
				
			},
			clear:function(){
				var ss=["d","t"];
				for(var k=0;k<2;k++)
				for (var i=1; i <= 20; i++) {
					var j = i;
					if(j<10)
						j="0"+j
					var item = $("#kl10dt4z4_" + ss[k]+"_" + j);
					if (item.hasClass("cur")) {
						item.trigger('click');
					} 
				}
			}

		},
		"kl10dt5z5":{
			showname: '五中五',
			rulecode: 'kl10dt5z5',
			realname: '[胆拖任选_五中五]',
			maxMultiplePerOrder:-1,
			maxPrize:-1,
			maxRecord:-1,

			fixed:1.2,
			minMode:1850,
			startPrice:330,
			calculatePrize:Env.defaultCalculate,
			pageHtml:'<dl class="danqiu" id="kl10dt5z5">'
				+ '<dd><h5>胆码</h5>'
				+'<ul class="sz-qiu"><li  id="kl10dt5z5_d_01">01</li><li id="kl10dt5z5_d_02">02</li><li id="kl10dt5z5_d_03">03</li>'
				+'<li id="kl10dt5z5_d_04">04</li><li id="kl10dt5z5_d_05">05</li><li id="kl10dt5z5_d_06">06</li><li id="kl10dt5z5_d_07">07</li>'
				+'<li id="kl10dt5z5_d_08">08</li><li id="kl10dt5z5_d_09">09</li><li id="kl10dt5z5_d_10">10</li><li id="kl10dt5z5_d_11">11</li>'
				+'<li id="kl10dt5z5_d_12">12</li><li id="kl10dt5z5_d_13">13</li><li id="kl10dt5z5_d_14">14</li><li id="kl10dt5z5_d_15">15</li>'
				+'<li id="kl10dt5z5_d_16">16</li><li id="kl10dt5z5_d_17">17</li><li id="kl10dt5z5_d_18">18</li><li id="kl10dt5z5_d_19">19</li><li id="kl10dt5z5_d_20">20</li></ul>'
				+'<ul class="gongn"><li datascope="kl10dt5z5_d_ful_1-20">全</li><li datascope="kl10dt5z5_d_big_1-20">大</li><li datascope="kl10dt5z5_d_sma_1-20">小</li>'
				+'<li datascope="kl10dt5z5_d_sin_1-20">单</li><li datascope="kl10dt5z5_d_dou_1-20">双</li><li datascope="kl10dt5z5_d_cle_1-20">清</li></ul></dd>'
				+'<dd><h5>拖码</h5>'
				+'<ul class="sz-qiu"><li  id="kl10dt5z5_t_01">01</li><li id="kl10dt5z5_t_02">02</li><li id="kl10dt5z5_t_03">03</li>'
				+'<li id="kl10dt5z5_t_04">04</li><li id="kl10dt5z5_t_05">05</li><li id="kl10dt5z5_t_06">06</li><li id="kl10dt5z5_t_07">07</li>'
				+'<li id="kl10dt5z5_t_08">08</li><li id="kl10dt5z5_t_09">09</li><li id="kl10dt5z5_t_10">10</li><li id="kl10dt5z5_t_11">11</li>'
				+'<li id="kl10dt5z5_t_12">12</li><li id="kl10dt5z5_t_13">13</li><li id="kl10dt5z5_t_14">14</li><li id="kl10dt5z5_t_15">15</li>'
				+'<li id="kl10dt5z5_t_16">16</li><li id="kl10dt5z5_t_17">17</li><li id="kl10dt5z5_t_18">18</li><li id="kl10dt5z5_t_19">19</li><li id="kl10dt5z5_t_20">20</li></ul>'
				+'<ul class="gongn"><li datascope="kl10dt5z5_t_ful_1-20">全</li><li datascope="kl10dt5z5_t_big_1-20">大</li><li datascope="kl10dt5z5_t_sma_1-20">小</li>'
				+'<li datascope="kl10dt5z5_t_sin_1-20">单</li><li datascope="kl10dt5z5_t_dou_1-20">双</li><li datascope="kl10dt5z5_t_cle_1-20">清</li></ul></dd></dl>',
			bettips: '分别从胆码和拖码的01-20中，至少选择1个胆码和4个拖码组成一注，只要当期顺序摇出的5个开奖号码中同时包含所选的1个胆码和4个拖码，即为中奖。 ',
			betexample: '选择胆码 08，选择拖码 02 06 09 11，开奖号码为 06 08 11 09 02 15 18 20，即为中奖。',
			bethelp: '分别从胆码和拖码的01-20中，至少选择1个胆码和4个拖码组成一注，只要当期顺序摇出的5个开奖号码中同时包含所选的1个胆码和4个拖码，即为中奖。 ',
			textarea: {},
			formatBalls : function(balls) {
				return formatBall(balls['d'])+','+formatBall(balls['t']);
			},
			vali: function(e) {
				
				if (!way.get(this.rulecode + ".count.d") || !way.get(this.rulecode + ".count.t")) {
					way.set("Lottery.itemcount", "0");
					way.set("Lottery.total", "0");
				} else if (way.get("Lottery.times")) {
					
					var selected_d_ball_array=way.get(this.rulecode + ".balls.d");
					
					var selected_t_ball_array=way.get(this.rulecode + ".balls.t");
					
					if(selected_d_ball_array&&selected_d_ball_array.length>0&&selected_t_ball_array&&selected_t_ball_array.length>0){
						var isfor=true;
						for(i=0;isfor&&i<selected_d_ball_array.length;i++)
							if(selected_d_ball_array[i])
								for(j=0;j<selected_t_ball_array.length;j++)
									if(selected_t_ball_array[j]&&selected_t_ball_array[j]==selected_d_ball_array[i])
							{
										var ss = e.target.id.split("_");
										var balls = way.get(ss[0] + ".balls." + ss[1]);										
										var count = way.get(ss[0] + ".count." + ss[1]);
										if ($(e.target).hasClass("cur")) {
											$(e.target).removeClass("cur");
											balls[eval(ss[2])] = "";
											way.set(ss[0] + ".count." + ss[1], count - 1);
										} else {
											$(e.target).addClass("cur");
											balls[eval(ss[2])] = ss[2];
											way.set(ss[0] + ".count." + ss[1], count + 1);
										}
										popTips('胆码拖码数字不能相同', "error");
										isfor=false;
										break;
							}
					}
					
					var d_count=way.get(this.rulecode + ".count.d");
					var t_count=way.get(this.rulecode + ".count.t");
					
					var itemcount=0;
										
					

					if(d_count<=4&&d_count>0){
						
						var op_flag=false;
						
						for(var oo=0;oo<selected_d_ball_array.length;oo++){
							
							var temp_o_d_ball_number=selected_d_ball_array[oo];
							
							if(temp_o_d_ball_number!=undefined&&temp_o_d_ball_number!=""){
								
								for(var mm=0;mm<selected_t_ball_array.length;mm++){
									
									var temp_o_t_ball_number=selected_t_ball_array[mm];
									
									if(temp_o_t_ball_number!=undefined&&temp_o_t_ball_number!=""){
										if(eval(temp_o_d_ball_number)==eval(temp_o_t_ball_number)){
											
											op_flag=true;
											break;
										}
									}
									
								}
							}
							
							if(op_flag==true){
								
								break;
								
							}
							
						}
						
						if(op_flag==false){
							
							if(d_count==1){
								
								
								if(t_count>=4){
									
									itemcount=t_count*(t_count-1)*(t_count-2)*(t_count-3)/(4*3*2);
									
								}
								
									
							}else if(d_count==2){
								
								if(t_count>=3){
									
									itemcount=t_count*(t_count-1)*(t_count-2)/(3*2);

								}
								
							}else if(d_count==3){
								
								
								if(t_count>=2){
									
									itemcount=t_count*(t_count-1)/2;

								}
								
							}else if(d_count==4){
								
								if(t_count>=1){
									
									itemcount=t_count;

								}
							}
								
	
						 }
									
							
					}
					if(itemcount==0){
						
						itemcount="0";

					}else{
						
						itemcount=parseInt(itemcount);
					}
					
					way.set("Lottery.itemcount", ""+itemcount);
					var total = itemcount * way.get("Lottery.times") * way.get("http://www.yugj881.com/resources/main/lottery/Lottery.yjf") * Env.price;
					if (total)
						way.set("Lottery.total",  total.toFixed(4));
					else way.set("Lottery.total", "0");
					
					
				} else {
					way.set("Lottery.total", "0");
				}
				
			},clear:function(){
				var ss=["d","t"];
				for(var k=0;k<2;k++)
				for (var i=1; i <= 20; i++) {
					var j = i;
					if(j<10)
						j="0"+j
					var item = $("#kl10dt5z5_" + ss[k]+"_" + j);
					if (item.hasClass("cur")) {
						item.trigger('click');
					} 
				}
			}

		},"kl10qszxfs": {
			showname: '复式',
			rulecode: 'kl10qszxfs',
			realname: '[前三星直选_复式]',
			maxMultiplePerOrder:-1,
			maxPrize:-1,
			maxRecord:-1,

			fixed: 51,
			minMode:1850,
			startPrice:5625,
			calculatePrize:Env.defaultCalculate,
			pageHtml:'<dl class="danqiu" id="kl10qszxfs">'
				+ '<dd><h5>第一位</h5>'
				+'<ul class="sz-qiu"><li  id="kl10qszxfs_w_01">01</li><li id="kl10qszxfs_w_02">02</li><li id="kl10qszxfs_w_03">03</li>'
				+'<li id="kl10qszxfs_w_04">04</li><li id="kl10qszxfs_w_05">05</li><li id="kl10qszxfs_w_06">06</li><li id="kl10qszxfs_w_07">07</li>'
				+'<li id="kl10qszxfs_w_08">08</li><li id="kl10qszxfs_w_09">09</li><li id="kl10qszxfs_w_10">10</li><li id="kl10qszxfs_w_11">11</li>'
				+'<li id="kl10qszxfs_w_12">12</li><li id="kl10qszxfs_w_13">13</li><li id="kl10qszxfs_w_14">14</li><li id="kl10qszxfs_w_15">15</li>'
				+'<li id="kl10qszxfs_w_16">16</li><li id="kl10qszxfs_w_17">17</li><li id="kl10qszxfs_w_18">18</li><li id="kl10qszxfs_w_19">19</li><li id="kl10qszxfs_w_20">20</li></ul>'
				+'<ul class="gongn"><li datascope="kl10qszxfs_w_ful_1-20">全</li><li datascope="kl10qszxfs_w_big_1-20">大</li><li datascope="kl10qszxfs_w_sma_1-20">小</li>'
				+'<li datascope="kl10qszxfs_w_sin_1-20">单</li><li datascope="kl10qszxfs_w_dou_1-20">双</li><li datascope="kl10qszxfs_w_cle_1-20">清</li></ul></dd>'
				+ '<dd><h5>第二位</h5>'
				+'<ul class="sz-qiu"><li  id="kl10qszxfs_q_01">01</li><li id="kl10qszxfs_q_02">02</li><li id="kl10qszxfs_q_03">03</li>'
				+'<li id="kl10qszxfs_q_04">04</li><li id="kl10qszxfs_q_05">05</li><li id="kl10qszxfs_q_06">06</li><li id="kl10qszxfs_q_07">07</li>'
				+'<li id="kl10qszxfs_q_08">08</li><li id="kl10qszxfs_q_09">09</li><li id="kl10qszxfs_q_10">10</li><li id="kl10qszxfs_q_11">11</li>'
				+'<li id="kl10qszxfs_q_12">12</li><li id="kl10qszxfs_q_13">13</li><li id="kl10qszxfs_q_14">14</li><li id="kl10qszxfs_q_15">15</li>'
				+'<li id="kl10qszxfs_q_16">16</li><li id="kl10qszxfs_q_17">17</li><li id="kl10qszxfs_q_18">18</li><li id="kl10qszxfs_q_19">19</li><li id="kl10qszxfs_q_20">20</li></ul>'
				+'<ul class="gongn"><li datascope="kl10qszxfs_q_ful_1-20">全</li><li datascope="kl10qszxfs_q_big_1-20">大</li><li datascope="kl10qszxfs_q_sma_1-20">小</li>'
				+'<li datascope="kl10qszxfs_q_sin_1-20">单</li><li datascope="kl10qszxfs_q_dou_1-20">双</li><li datascope="kl10qszxfs_q_cle_1-20">清</li></ul></dd>'
				+'<dd><h5>第三位</h5>'
				+'<ul class="sz-qiu"><li  id="kl10qszxfs_b_01">01</li><li id="kl10qszxfs_b_02">02</li><li id="kl10qszxfs_b_03">03</li>'
				+'<li id="kl10qszxfs_b_04">04</li><li id="kl10qszxfs_b_05">05</li><li id="kl10qszxfs_b_06">06</li><li id="kl10qszxfs_b_07">07</li>'
				+'<li id="kl10qszxfs_b_08">08</li><li id="kl10qszxfs_b_09">09</li><li id="kl10qszxfs_b_10">10</li><li id="kl10qszxfs_b_11">11</li>'
				+'<li id="kl10qszxfs_b_12">12</li><li id="kl10qszxfs_b_13">13</li><li id="kl10qszxfs_b_14">14</li><li id="kl10qszxfs_b_15">15</li>'
				+'<li id="kl10qszxfs_b_16">16</li><li id="kl10qszxfs_b_17">17</li><li id="kl10qszxfs_b_18">18</li><li id="kl10qszxfs_b_19">19</li><li id="kl10qszxfs_b_20">20</li></ul>'
				+'<ul class="gongn"><li datascope="kl10qszxfs_b_ful_1-20">全</li><li datascope="kl10qszxfs_b_big_1-20">大</li><li datascope="kl10qszxfs_b_sma_1-20">小</li>'
				+'<li datascope="kl10qszxfs_b_sin_1-20">单</li><li datascope="kl10qszxfs_b_dou_1-20">双</li><li datascope="kl10qszxfs_b_cle_1-20">清</li></ul></dd></dl>',
			bettips: '从第一位、第二位、第三位各选一个号码组成一注。',
			betexample: '投注方案：02 03 04  ；开奖号码：02 03 04 * * * * *',
			bethelp: '从第一位、第二位、第三位各选一个号码组成一注，所选号码与开奖号码全部相同，且顺序一致，即为中奖。',
			formatBalls : function(balls) {
				return formatBall(balls['w'])+','+formatBall(balls['q'])+','+formatBall(balls['b']);
			},
			vali: function() {
				if (!way.get(this.rulecode + ".count.w") || !way.get(this.rulecode + ".count.q") || !way.get(this.rulecode + ".count.b")) {
					way.set("Lottery.itemcount", "0");
					way.set("Lottery.total", "0");
				} else if (way.get("Lottery.times")) {
					var ballw = way.get(this.rulecode + ".balls.w");
					var ballq = way.get(this.rulecode + ".balls.q");
					var ballb = way.get(this.rulecode + ".balls.b");
					  var itemcount = 0;
				        for (var i = 0; i < ballw.length; i++) {
				            for (var j = 0; j < ballq.length; j++) {
				                for (var k = 0; k < ballb.length; k++) {
				                	if(ballw[i]!=undefined&&ballq[j]!=undefined&&ballb[k]!=undefined&&ballw[i]!=""&&ballq[j]!=""&&ballb[k]!=""){
					                    if (ballw[i] != ballq[j] && ballw[i] != ballb[k] && ballq[j] != ballb[k]) {
					                    	itemcount++;
					                    }
				                	}
				                }
				            }
				        }
					way.set("Lottery.itemcount", ""+itemcount);
					var total = itemcount * way.get("Lottery.times") * way.get("http://www.yugj881.com/resources/main/lottery/Lottery.yjf") * Env.price;
					if (total)
						way.set("Lottery.total", total.toFixed(4));
					else way.set("Lottery.total", "0");
				} else {
					way.set("Lottery.total", "0");
				}
			},
			clear:function(){
				var ss=["w","q","b"];
				for(k=0;k<3;k++)
				for (i=1; i <= 20; i++) {
					var j =i;
					if(j<10)
						j="0"+j;
					var item = $("#"+this.rulecode+"_" + ss[k]+"_" + j);
					if (item.hasClass("cur")) {
						item.trigger('click');
					} 
				}
			}
		},
		"kl10hszxfs": {
			showname: '复式',
			rulecode: 'kl10hszxfs',
			maxMultiplePerOrder:-1,
			maxPrize:-1,
			maxRecord:-1,
			realname: '[后三星直选_复式]',
			fixed: 51,
			minMode:1850,
			startPrice:5625,
			calculatePrize:Env.defaultCalculate,
			pageHtml:'<dl class="danqiu" id="kl10hszxfs">'
				+ '<dd><h5>第六位</h5>'
				+'<ul class="sz-qiu"><li  id="kl10hszxfs_b_01">01</li><li id="kl10hszxfs_b_02">02</li><li id="kl10hszxfs_b_03">03</li>'
				+'<li id="kl10hszxfs_b_04">04</li><li id="kl10hszxfs_b_05">05</li><li id="kl10hszxfs_b_06">06</li><li id="kl10hszxfs_b_07">07</li>'
				+'<li id="kl10hszxfs_b_08">08</li><li id="kl10hszxfs_b_09">09</li><li id="kl10hszxfs_b_10">10</li><li id="kl10hszxfs_b_11">11</li>'
				+'<li id="kl10hszxfs_b_12">12</li><li id="kl10hszxfs_b_13">13</li><li id="kl10hszxfs_b_14">14</li><li id="kl10hszxfs_b_15">15</li>'
				+'<li id="kl10hszxfs_b_16">16</li><li id="kl10hszxfs_b_17">17</li><li id="kl10hszxfs_b_18">18</li><li id="kl10hszxfs_b_19">19</li><li id="kl10hszxfs_b_20">20</li></ul>'
				+'<ul class="gongn"><li datascope="kl10hszxfs_b_ful_1-20">全</li><li datascope="kl10hszxfs_b_big_1-20">大</li><li datascope="kl10hszxfs_b_sma_1-20">小</li>'
				+'<li datascope="kl10hszxfs_b_sin_1-20">单</li><li datascope="kl10hszxfs_b_dou_1-20">双</li><li datascope="kl10hszxfs_b_cle_1-20">清</li></ul></dd>'
				+ '<dd><h5>第七位</h5>'
				+'<ul class="sz-qiu"><li  id="kl10hszxfs_s_01">01</li><li id="kl10hszxfs_s_02">02</li><li id="kl10hszxfs_s_03">03</li>'
				+'<li id="kl10hszxfs_s_04">04</li><li id="kl10hszxfs_s_05">05</li><li id="kl10hszxfs_s_06">06</li><li id="kl10hszxfs_s_07">07</li>'
				+'<li id="kl10hszxfs_s_08">08</li><li id="kl10hszxfs_s_09">09</li><li id="kl10hszxfs_s_10">10</li><li id="kl10hszxfs_s_11">11</li>'
				+'<li id="kl10hszxfs_s_12">12</li><li id="kl10hszxfs_s_13">13</li><li id="kl10hszxfs_s_14">14</li><li id="kl10hszxfs_s_15">15</li>'
				+'<li id="kl10hszxfs_s_16">16</li><li id="kl10hszxfs_s_17">17</li><li id="kl10hszxfs_s_18">18</li><li id="kl10hszxfs_s_19">19</li><li id="kl10hszxfs_s_20">20</li></ul>'
				+'<ul class="gongn"><li datascope="kl10hszxfs_s_ful_1-20">全</li><li datascope="kl10hszxfs_s_big_1-20">大</li><li datascope="kl10hszxfs_s_sma_1-20">小</li>'
				+'<li datascope="kl10hszxfs_s_sin_1-20">单</li><li datascope="kl10hszxfs_s_dou_1-20">双</li><li datascope="kl10hszxfs_s_cle_1-20">清</li></ul></dd>'
				+'<dd><h5>第八位</h5>'
				+'<ul class="sz-qiu"><li  id="kl10hszxfs_g_01">01</li><li id="kl10hszxfs_g_02">02</li><li id="kl10hszxfs_g_03">03</li>'
				+'<li id="kl10hszxfs_g_04">04</li><li id="kl10hszxfs_g_05">05</li><li id="kl10hszxfs_g_06">06</li><li id="kl10hszxfs_g_07">07</li>'
				+'<li id="kl10hszxfs_g_08">08</li><li id="kl10hszxfs_g_09">09</li><li id="kl10hszxfs_g_10">10</li><li id="kl10hszxfs_g_11">11</li>'
				+'<li id="kl10hszxfs_g_12">12</li><li id="kl10hszxfs_g_13">13</li><li id="kl10hszxfs_g_14">14</li><li id="kl10hszxfs_g_15">15</li>'
				+'<li id="kl10hszxfs_g_16">16</li><li id="kl10hszxfs_g_17">17</li><li id="kl10hszxfs_g_18">18</li><li id="kl10hszxfs_g_19">19</li><li id="kl10hszxfs_g_20">20</li></ul>'
				+'<ul class="gongn"><li datascope="kl10hszxfs_g_ful_1-20">全</li><li datascope="kl10hszxfs_g_big_1-20">大</li><li datascope="kl10hszxfs_g_sma_1-20">小</li>'
				+'<li datascope="kl10hszxfs_g_sin_1-20">单</li><li datascope="kl10hszxfs_g_dou_1-20">双</li><li datascope="kl10hszxfs_g_cle_1-20">清</li></ul></dd></dl>',
			bettips: '从第六位、第七位、第八位各选一个号码组成一注。',
			betexample: '投注方案：02 03 04  ；开奖号码：* * * * * 02 03 04',
			bethelp: '从第六位、第七位、第八位中选择一个号码组成一注，所选号码与开奖号码全部相同，且顺序一致，即为中奖。',
			formatBalls : function(balls) {
				return formatBall(balls['b'])+','+formatBall(balls['s'])+','+formatBall(balls['g']);
			},
			vali: function() {
				if (!way.get(this.rulecode + ".count.b") || !way.get(this.rulecode + ".count.s") || !way.get(this.rulecode + ".count.g")) {
					way.set("Lottery.itemcount", "0");
					way.set("Lottery.total", "0");
				} else if (way.get("Lottery.times")) {
					var ballb = way.get(this.rulecode + ".balls.b");
					var balls = way.get(this.rulecode + ".balls.s");
					var ballg = way.get(this.rulecode + ".balls.g");
					  var itemcount = 0;
				        for (var i = 0; i < ballb.length; i++) {
				            for (var j = 0; j < balls.length; j++) {
				                for (var k = 0; k < ballg.length; k++) {
				                	if(ballb[i]!=undefined&&balls[j]!=undefined&&ballg[k]!=undefined&&ballb[i]!=""&&balls[j]!=""&&ballg[k]!=""){
					                    if (ballb[i] != balls[j] && ballb[i] != ballg[k] && balls[j] != ballg[k]) {
					                    	itemcount++;
					                    }
				                	}
				                }
				            }
				        }
					way.set("Lottery.itemcount", ""+itemcount);
					var total = itemcount * way.get("Lottery.times") * way.get("http://www.yugj881.com/resources/main/lottery/Lottery.yjf") * Env.price;
					if (total)
						way.set("Lottery.total", total.toFixed(4));
					else way.set("Lottery.total", "0");
				} else {
					way.set("Lottery.total", "0");
				}
			},
			clear:function(){
				var ss=["b","s","g"];
				for(k=0;k<3;k++)
				for (i=1; i <= 20; i++) {
					var j = i;
					if(j<10)
						j="0"+j
					var item = $("#"+this.rulecode+"_" + ss[k]+"_" + j);
					if (item.hasClass("cur")) {
						item.trigger('click');
					} 
				}
			}
		},"kl10qszux": {
			showname: '前三',
			rulecode: 'kl10qszux',
			realname: '[三星组选_前三]',
			maxMultiplePerOrder:-1,
			maxPrize:-1,
			maxRecord:-1,

			fixed: 5,
			minMode:1850,
			startPrice:1325,
			calculatePrize:Env.defaultCalculate,
			pageHtml:'<dl class="danqiu" id="kl10qszux">'
				+ '<dd><h5>前三</h5>'
				+'<ul class="sz-qiu"><li  id="kl10qszux_b_01">01</li><li id="kl10qszux_b_02">02</li><li id="kl10qszux_b_03">03</li>'
				+'<li id="kl10qszux_b_04">04</li><li id="kl10qszux_b_05">05</li><li id="kl10qszux_b_06">06</li><li id="kl10qszux_b_07">07</li>'
				+'<li id="kl10qszux_b_08">08</li><li id="kl10qszux_b_09">09</li><li id="kl10qszux_b_10">10</li><li id="kl10qszux_b_11">11</li>'
				+'<li id="kl10qszux_b_12">12</li><li id="kl10qszux_b_13">13</li><li id="kl10qszux_b_14">14</li><li id="kl10qszux_b_15">15</li>'
				+'<li id="kl10qszux_b_16">16</li><li id="kl10qszux_b_17">17</li><li id="kl10qszux_b_18">18</li><li id="kl10qszux_b_19">19</li><li id="kl10qszux_b_20">20</li></ul>'
				+'<ul class="gongn"><li datascope="kl10qszux_b_ful_1-20">全</li><li datascope="kl10qszux_b_big_1-20">大</li><li datascope="kl10qszux_b_sma_1-20">小</li>'
				+'<li datascope="kl10qszux_b_sin_1-20">单</li><li datascope="kl10qszux_b_dou_1-20">双</li><li datascope="kl10qszux_b_cle_1-20">清</li></ul></dd></dl>',
			bettips: '01-20中任意选择3个号码组成一注，所选号码与开奖号码的第一位、第二位、第三位相同，且顺序不限，即为中奖。',
			betexample: '如：选择01 02 03（展开为 01 02 03 * * * * * 、01 03 02 * * * * *和03 02 01 * * * * *），开奖号码为01 02 03 * * * * * 或 01 03 02 * * * * *或者03 02 01 * * * * *，即为中奖。',
			bethelp: '01-20中任意选择3个号码组成一注，所选号码与开奖号码的第一位、第二位、第三位相同，且顺序不限，即为中奖。',
			vali: function() {
				if (!way.get(this.rulecode + ".count.b")) {
					way.set("Lottery.itemcount", "0");
					way.set("Lottery.total", "0");
				} else if (way.get("Lottery.times")) {
					var ballC = way.get(this.rulecode + ".count.b");
					var itemcount = 0;
					if(ballC>2){
						itemcount=Number(ballC)*(Number(ballC)-1)*(Number(ballC)-2)/6;
					}
					way.set("Lottery.itemcount", ""+itemcount);
					var total = itemcount * way.get("Lottery.times") * way.get("http://www.yugj881.com/resources/main/lottery/Lottery.yjf") * Env.price;
					if (total)
						way.set("Lottery.total", total.toFixed(4));
					else way.set("Lottery.total", "0");
				} else {
					way.set("Lottery.total", "0");
				}
			},
			clear:function(){
				var ss=["b"];
				for(k=0;k<1;k++)
				for (i=1; i <= 20; i++) {
					var j=i;
					if(j<10)
						j="0"+j;
					var item = $("#"+this.rulecode+"_" + ss[k]+"_" + j);
					if (item.hasClass("cur")) {
						item.trigger('click');
					} 
				}
			}
		},"kl10hszux": {
			showname: '后三',
			rulecode: 'kl10hszux',
			realname: '[三星组选_后三]',
			maxMultiplePerOrder:-1,
			maxPrize:-1,
			maxRecord:-1,
			fixed: 5,
			minMode:1850,
			startPrice:1325,
			calculatePrize:Env.defaultCalculate,
			pageHtml:'<dl class="danqiu" id="kl10hszux">'
				+ '<dd><h5>后三</h5>'
				+'<ul class="sz-qiu"><li  id="kl10hszux_b_01">01</li><li id="kl10hszux_b_02">02</li><li id="kl10hszux_b_03">03</li>'
				+'<li id="kl10hszux_b_04">04</li><li id="kl10hszux_b_05">05</li><li id="kl10hszux_b_06">06</li><li id="kl10hszux_b_07">07</li>'
				+'<li id="kl10hszux_b_08">08</li><li id="kl10hszux_b_09">09</li><li id="kl10hszux_b_10">10</li><li id="kl10hszux_b_11">11</li>'
				+'<li id="kl10hszux_b_12">12</li><li id="kl10hszux_b_13">13</li><li id="kl10hszux_b_14">14</li><li id="kl10hszux_b_15">15</li>'
				+'<li id="kl10hszux_b_16">16</li><li id="kl10hszux_b_17">17</li><li id="kl10hszux_b_18">18</li><li id="kl10hszux_b_19">19</li><li id="kl10hszux_b_20">20</li></ul>'
				+'<ul class="gongn"><li datascope="kl10hszux_b_ful_1-20">全</li><li datascope="kl10hszux_b_big_1-20">大</li><li datascope="kl10hszux_b_sma_1-20">小</li>'
				+'<li datascope="kl10hszux_b_sin_1-20">单</li><li datascope="kl10hszux_b_dou_1-20">双</li><li datascope="kl10hszux_b_cle_1-20">清</li></ul></dd></dl>',
			bettips: '01-20中任意选择3个号码组成一注，所选号码与开奖号码的第六位、第七位、第八位相同，且顺序不限，即为中奖。',
			betexample: '如：选择01 02 03（展开为* * * * * 01 02 03、* * * * * 01 03 02和* * * * * 03 02 01，），开奖号码为* * * * * 01 02 03 或* * * * * 01 03 02或者* * * * * 03 02 01 ，即为中奖。',
			bethelp: '01-20中任意选择3个号码组成一注，所选号码与开奖号码的第六位、第七位、第八位相同，且顺序不限，即为中奖。',
			vali: function() {
				if (!way.get(this.rulecode + ".count.b")) {
					way.set("Lottery.itemcount", "0");
					way.set("Lottery.total", "0");
				} else if (way.get("Lottery.times")) {
					var ballC = way.get(this.rulecode + ".count.b");
					var itemcount = 0;
					if(ballC>2){
						itemcount=Number(ballC)*(Number(ballC)-1)*(Number(ballC)-2)/6;
					}
					way.set("Lottery.itemcount", ""+itemcount);
					var total = itemcount * way.get("Lottery.times") * way.get("http://www.yugj881.com/resources/main/lottery/Lottery.yjf") * Env.price;
					if (total)
						way.set("Lottery.total", total.toFixed(4));
					else way.set("Lottery.total", "0");
				} else {
					way.set("Lottery.total", "0");
				}
			},
			clear:function(){
				var ss=["b"];
				for(k=0;k<1;k++)
				for (i=1; i <= 20; i++) {
					var j = i;
					if(j<10)
						j="0"+j
					var item = $("#"+this.rulecode+"_" + ss[k]+"_" + j);
					if (item.hasClass("cur")) {
						item.trigger('click');
					} 
				}
			}

		},"kl10qezxfs": {
			showname: '复式',
			rulecode: 'kl10qezxfs',
			realname: '[前二星直选_复式]',
			maxMultiplePerOrder:-1,
			maxPrize:-1,
			maxRecord:-1,

			fixed: 0.22,
			minMode:1850,
			startPrice:200.2,
			calculatePrize:Env.defaultCalculate,
			bettips: '从第一位、第二位各选一个号码组成一注。',
			betexample: '投注方案：02 03；开奖号码：02 03 * * * * * *',
			bethelp: '从第一位、第二位各选一个号码组成一注，所选号码与开奖号码全部相同，且顺序一致，即为中奖。',
			vali: function() {
				if (!way.get(this.rulecode + ".count.w") || !way.get(this.rulecode + ".count.q")) {
					way.set("Lottery.itemcount", "0");
					way.set("Lottery.total", "0");
				} else if (way.get("Lottery.times")) {
					var ballw = way.get(this.rulecode + ".balls.w");
					var ballq = way.get(this.rulecode + ".balls.q");
					  var itemcount = 0;
				        for (var i = 0; i < ballw.length; i++) {
				            for (var j = 0; j < ballq.length; j++) {
				                	if(ballw[i]!=undefined&&ballq[j]!=undefined&&ballw[i]!=""&&ballq[j]!=""){
					                    if (ballw[i] != ballq[j]) {
					                    	itemcount++;
					                    }
				                	}
				            }
				        }
					way.set("Lottery.itemcount", ""+itemcount);
					var total = itemcount * way.get("Lottery.times") * way.get("http://www.yugj881.com/resources/main/lottery/Lottery.yjf") * Env.price;
					if (total)
						way.set("Lottery.total", total.toFixed(4));
					else way.set("Lottery.total", "0");
				} else {
					way.set("Lottery.total", "0");
				}
			},
			clear:function(){
				var ss=["w","q"];
				for(k=0;k<2;k++)
				for (i=1; i <= 20; i++) {
					var j=i;
					if(j<10)
						j="0"+j
					var item = $("#"+this.rulecode+"_" + ss[k]+"_" + j);
					if (item.hasClass("cur")) {
						item.trigger('click');
					} 
				}
			}
		},"kl10hezxfs": {
			showname: '复式',
			rulecode: 'kl10hezxfs',
			realname: '[后二星直选_复式]',
			maxMultiplePerOrder:-1,
			maxPrize:-1,
			maxRecord:-1,

			fixed: 0.22,
			minMode:1850,
			startPrice:200.2,
			calculatePrize:Env.defaultCalculate,
			bettips: '从第七位、第八位各选一个号码组成一注。',
			betexample: '投注方案：02 03；开奖号码：* * * * * * 02 03',
			bethelp: '从第七位、第八位各选一个号码组成一注，所选号码与开奖号码全部相同，且顺序一致，即为中奖。',
			vali: function() {
				if (!way.get(this.rulecode + ".count.s") || !way.get(this.rulecode + ".count.g")) {
					way.set("Lottery.itemcount", "0");
					way.set("Lottery.total", "0");
				} else if (way.get("Lottery.times")) {
					var balls = way.get(this.rulecode + ".balls.s");
					var ballg = way.get(this.rulecode + ".balls.g");
					  var itemcount = 0;
				        for (var i = 0; i < balls.length; i++) {
				            for (var j = 0; j < ballg.length; j++) {
				                	if(balls[i]!=undefined&&ballg[j]!=undefined&&balls[i]!=""&&ballg[j]!=""){
					                    if (balls[i] != ballg[j]) {
					                    	itemcount++;
					                    }
				                	}
				            }
				        }
					way.set("Lottery.itemcount", ""+itemcount);
					var total = itemcount * way.get("Lottery.times") * way.get("http://www.yugj881.com/resources/main/lottery/Lottery.yjf") * Env.price;
					if (total)
						way.set("Lottery.total", total.toFixed(4));
					else way.set("Lottery.total", "0");
				} else {
					way.set("Lottery.total", "0");
				}
			},
			clear:function(){
				var ss=["s","g"];
				for(k=0;k<2;k++)
				for (i=1; i <= 20; i++) {
					var j=i;
					if(j<10)
						j="0"+j
					var item = $("#"+this.rulecode+"_" + ss[k]+"_" + j);
					if (item.hasClass("cur")) {
						item.trigger('click');
					} 
				}
			}
		},"kl10qezux": {
			showname: '前二',
			rulecode: 'kl10qezux',
			realname: '[二星组选_前二]',
			maxMultiplePerOrder:-1,
			maxPrize:-1,
			maxRecord:-1,

			fixed: 0.11,
			minMode:1850,
			startPrice:100,
			calculatePrize:Env.defaultCalculate,
			bettips: '01-20中任意选择2个号码组成一注，所选号码与开奖号码的第一位、第二位相同，且顺序不限，即为中奖。',
			betexample: '如：选择01 02（展开为01 02 * * * * * *、02 01 * * * * * *，），开奖号码为01 02 * * * * * *或者02 01 * * * * * *，即为中奖。',
			bethelp: '01-20中任意选择2个号码组成一注，所选号码与开奖号码的第一位、第二位相同，且顺序不限，即为中奖。',
			vali: function() {
				if (!way.get(this.rulecode + ".count.b")) {
					way.set("Lottery.itemcount", "0");
					way.set("Lottery.total", "0");
				} else if (way.get("Lottery.times")) {
					var ballC = way.get(this.rulecode + ".count.b");
					var itemcount = 0;
					if(ballC>1){
						itemcount=Number(ballC)*(Number(ballC)-1)/2;
					}
					way.set("Lottery.itemcount", ""+itemcount);
					var total = itemcount * way.get("Lottery.times") * way.get("http://www.yugj881.com/resources/main/lottery/Lottery.yjf") * Env.price;
					if (total)
						way.set("Lottery.total", total.toFixed(4));
					else way.set("Lottery.total", "0");
				} else {
					way.set("Lottery.total", "0");
				}
			},
			clear:function(){
				var ss=["b"];
				for(k=0;k<1;k++)
				for (i=1; i <= 20; i++) {
					var j=i;
					if(j<10)
						j="0"+j
					var item = $("#"+this.rulecode+"_" + ss[k]+"_" + j);
					if (item.hasClass("cur")) {
						item.trigger('click');
					} 
				}
			}
		},
		"kl10hezux": {
			showname: '后二',
			rulecode: 'kl10hezux',
			realname: '[二星组选_后二]',
			maxMultiplePerOrder:-1,
			maxPrize:-1,
			maxRecord:-1,
			fixed: 0.11,
			minMode:1850,
			startPrice:100,
			calculatePrize:Env.defaultCalculate,
			bettips: '01-20中任意选择2个号码组成一注，所选号码与开奖号码的第七位、第八位相同，且顺序不限，即为中奖。',
			betexample: '如：选择01 02（展开为* * * * * * 01 02和* * * * * * 02 01），开奖号码为* * * * * * 01 02或* * * * * * 02 01，即为中奖。',
			bethelp: '01-20中任意选择2个号码组成一注，所选号码与开奖号码的第七位、第八位相同，且顺序不限，即为中奖。',
			vali: function() {
				if (!way.get(this.rulecode + ".count.b")) {
					way.set("Lottery.itemcount", "0");
					way.set("Lottery.total", "0");
				} else if (way.get("Lottery.times")) {
					var ballC = way.get(this.rulecode + ".count.b");
					var itemcount = 0;
					if(ballC>1){
						itemcount=Number(ballC)*(Number(ballC)-1)/2;
					}
					way.set("Lottery.itemcount", ""+itemcount);
					var total = itemcount * way.get("Lottery.times") * way.get("http://www.yugj881.com/resources/main/lottery/Lottery.yjf") * Env.price;
					if (total)
						way.set("Lottery.total", total.toFixed(4));
					else way.set("Lottery.total", "0");
				} else {
					way.set("Lottery.total", "0");
				}
			},
			clear:function(){
				var ss=["b"];
				for(k=0;k<1;k++)
				for (i=1; i <= 20; i++) {
					var j=i;
					if(j<10)
						j="0"+j
					var item = $("#"+this.rulecode+"_" + ss[k]+"_" + j);
					if (item.hasClass("cur")) {
						item.trigger('click');
					} 
				}
			}

		},"kl10elzx": {
			showname: '二星二连',
			rulecode: 'kl10elzx',
			realname: '[二星二连_直选]',
			maxMultiplePerOrder:-1,
			maxPrize:-1,
			maxRecord:-1,

			fixed: 0.24,
			minMode:1850,
			startPrice:62,
			calculatePrize:Env.defaultCalculate,
			pageHtml:'<dl class="danqiu" id="kl10elzx">'
				+ '<dd><h5>第一位</h5>'
				+'<ul class="sz-qiu"><li  id="kl10elzx_w_01">01</li><li id="kl10elzx_w_02">02</li><li id="kl10elzx_w_03">03</li>'
				+'<li id="kl10elzx_w_04">04</li><li id="kl10elzx_w_05">05</li><li id="kl10elzx_w_06">06</li><li id="kl10elzx_w_07">07</li>'
				+'<li id="kl10elzx_w_08">08</li><li id="kl10elzx_w_09">09</li><li id="kl10elzx_w_10">10</li><li id="kl10elzx_w_11">11</li>'
				+'<li id="kl10elzx_w_12">12</li><li id="kl10elzx_w_13">13</li><li id="kl10elzx_w_14">14</li><li id="kl10elzx_w_15">15</li>'
				+'<li id="kl10elzx_w_16">16</li><li id="kl10elzx_w_17">17</li><li id="kl10elzx_w_18">18</li><li id="kl10elzx_w_19">19</li><li id="kl10elzx_w_20">20</li></ul>'
				+'<ul class="gongn"><li datascope="kl10elzx_w_ful_1-20">全</li><li datascope="kl10elzx_w_big_1-20">大</li><li datascope="kl10elzx_w_sma_1-20">小</li>'
				+'<li datascope="kl10elzx_w_sin_1-20">单</li><li datascope="kl10elzx_w_dou_1-20">双</li><li datascope="kl10elzx_w_cle_1-20">清</li></ul></dd>'
				+ '<dd><h5>第二位</h5>'
				+'<ul class="sz-qiu"><li  id="kl10elzx_q_01">01</li><li id="kl10elzx_q_02">02</li><li id="kl10elzx_q_03">03</li>'
				+'<li id="kl10elzx_q_04">04</li><li id="kl10elzx_q_05">05</li><li id="kl10elzx_q_06">06</li><li id="kl10elzx_q_07">07</li>'
				+'<li id="kl10elzx_q_08">08</li><li id="kl10elzx_q_09">09</li><li id="kl10elzx_q_10">10</li><li id="kl10elzx_q_11">11</li>'
				+'<li id="kl10elzx_q_12">12</li><li id="kl10elzx_q_13">13</li><li id="kl10elzx_q_14">14</li><li id="kl10elzx_q_15">15</li>'
				+'<li id="kl10elzx_q_16">16</li><li id="kl10elzx_q_17">17</li><li id="kl10elzx_q_18">18</li><li id="kl10elzx_q_19">19</li><li id="kl10elzx_q_20">20</li></ul>'
				+'<ul class="gongn"><li datascope="kl10elzx_q_ful_1-20">全</li><li datascope="kl10elzx_q_big_1-20">大</li><li datascope="kl10elzx_q_sma_1-20">小</li>'
				+'<li datascope="kl10elzx_q_sin_1-20">单</li><li datascope="kl10elzx_q_dou_1-20">双</li><li datascope="kl10elzx_q_cle_1-20">清</li></ul></dd></dl>',
			bettips: '从第一位、第二位各选一个号码组成一注，投注的两个号码与开奖的8个号码中任2个连续号码相同且顺序一致 即为中奖。',
			betexample: ' 如：第一位购买15 第二位购买09 ，开奖号码为 15 09 * * * * * * ，即为中奖。',
			bethelp: '从第一位、第二位各选一个号码组成一注，投注的两个号码与开奖的8个号码中任2个连续号码相同且顺序一致 即为中奖。',
			formatBalls : function(balls) {
				return formatBall(balls['w'])+','+formatBall(balls['q']);
			},
			vali: function() {
				if (!way.get(this.rulecode + ".count.w") || !way.get(this.rulecode + ".count.q")) {
					way.set("Lottery.itemcount", "0");
					way.set("Lottery.total", "0");
				} else if (way.get("Lottery.times")) {
					var ballw = way.get(this.rulecode + ".balls.w");
					var ballq = way.get(this.rulecode + ".balls.q");
					  var itemcount = 0;
				        for (var i = 0; i < ballw.length; i++) {
				            for (var j = 0; j < ballq.length; j++) {
				                	if(ballw[i]!=undefined&&ballq[j]!=undefined&&ballw[i]!=""&&ballq[j]!=""){
					                    if (ballw[i] != ballq[j]) {
					                    	itemcount++;
					                    }
				                	}
				            }
				        }
					way.set("Lottery.itemcount", ""+itemcount);
					var total = itemcount * way.get("Lottery.times") * way.get("http://www.yugj881.com/resources/main/lottery/Lottery.yjf") * Env.price;
					if (total)
						way.set("Lottery.total", total.toFixed(4));
					else way.set("Lottery.total", "0");
				} else {
					way.set("Lottery.total", "0");
				}
			},
			clear:function(){
				var ss=["w","q"];
				for(k=0;k<2;k++)
				for (i=1; i <= 20; i++) {
					var j=i;
					if(j<10)
						j="0"+j
					var item = $("#"+this.rulecode+"_" + ss[k]+"_" + j);
					if (item.hasClass("cur")) {
						item.trigger('click');
					} 
				}
			}
		},
		"kl10elzux": {
			showname: '二星二连',
			rulecode: 'kl10elzux',
			realname: '[二星二连_组选]',
			maxMultiplePerOrder:-1,
			maxPrize:-1,
			maxRecord:-1,
			fixed: 0.1,
			minMode:1850,
			startPrice:32.5,
			calculatePrize:Env.defaultCalculate,
			pageHtml:'<dl class="danqiu" id="kl10elzux">'
				+ '<dd><h5>二连组选</h5>'
				+'<ul class="sz-qiu"><li  id="kl10elzux_b_01">01</li><li id="kl10elzux_b_02">02</li><li id="kl10elzux_b_03">03</li>'
				+'<li id="kl10elzux_b_04">04</li><li id="kl10elzux_b_05">05</li><li id="kl10elzux_b_06">06</li><li id="kl10elzux_b_07">07</li>'
				+'<li id="kl10elzux_b_08">08</li><li id="kl10elzux_b_09">09</li><li id="kl10elzux_b_10">10</li><li id="kl10elzux_b_11">11</li>'
				+'<li id="kl10elzux_b_12">12</li><li id="kl10elzux_b_13">13</li><li id="kl10elzux_b_14">14</li><li id="kl10elzux_b_15">15</li>'
				+'<li id="kl10elzux_b_16">16</li><li id="kl10elzux_b_17">17</li><li id="kl10elzux_b_18">18</li><li id="kl10elzux_b_19">19</li><li id="kl10elzux_b_20">20</li></ul>'
				+'<ul class="gongn"><li datascope="kl10elzux_b_ful_1-20">全</li><li datascope="kl10elzux_b_big_1-20">大</li><li datascope="kl10elzux_b_sma_1-20">小</li>'
				+'<li datascope="kl10elzux_b_sin_1-20">单</li><li datascope="kl10elzux_b_dou_1-20">双</li><li datascope="kl10elzux_b_cle_1-20">清</li></ul></dd></dl>',
			bettips: '从1--20中任意选择两个号码组成一注，投注的两个号码与开奖的8个号码中任2个连续号码相同（顺序不限）即为中奖。',
			betexample: ' 如：选择号码09 15 ，开奖的号码为 15 09 * * * * * * ，即为中奖。',
			bethelp: '从1--20中任意选择两个号码组成一注，投注的两个号码与开奖的8个号码中任2个连续号码相同（顺序不限）即为中奖。',
			vali: function() {
				if (!way.get(this.rulecode + ".count.b")) {
					way.set("Lottery.itemcount", "0");
					way.set("Lottery.total", "0");
				} else if (way.get("Lottery.times")) {
					var ballb = way.get(this.rulecode + ".count.b");
					var itemcount = 0;
					if(ballb>1){
						itemcount=Number(ballb)*(Number(ballb)-1)/2;
						way.set("Lottery.itemcount", ""+itemcount);
						var total = itemcount * way.get("Lottery.times") * way.get("http://www.yugj881.com/resources/main/lottery/Lottery.yjf") * Env.price;
						if (total)
							way.set("Lottery.total", total.toFixed(4));
						else {
							way.set("Lottery.total", "0");
							way.set("Lottery.itemcount", "0");
							};
					}else{
						way.set("Lottery.total", "0");
						way.set("Lottery.itemcount", "0");
					}
				} else {
					way.set("Lottery.total", "0");
					way.set("Lottery.itemcount", "0");
				}
			},
			clear:function(){
				var ss=["b"];
				for(k=0;k<1;k++)
				for (i=1; i <= 20; i++) {
					var j=i;
					if(j<10)
						j="0"+j
					var item = $("#"+this.rulecode+"_" + ss[k]+"_" + j);
					if (item.hasClass("cur")) {
						item.trigger('click');
					} 
				}
			}

		}
		
			
}